script test upgrade
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2016
    Location
    here
    Posts
    26
    Linux (Fedora) Firefox 62.0

    script test upgrade

    Hi,
    What would be the best way to test if the system has been upgraded or if this is a fresh installation ? I tried dnf history but upgrade does not show.
    Thanks
    PS: on fedora 25 server

  2. #2
    Join Date
    Sep 2009
    Posts
    2,184
    Linux (Fedora) Firefox 62.0

    Re: script test upgrade

    I've always seen this type of output for dnf history list. You can then execute the second command to see what happened for each transaction.
    Code:
    $ sudo dnf history list
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
        53 | upgrade ghostscript.x86_ | 2018-09-17 14:43 | Update         |    4   
        52 | upgrade ./kernel-4.18.8- | 2018-09-16 15:41 | E, I, U        |   11   
    ...
         1 |                          | 2018-07-30 12:29 | Install        |  315 EE
    
    $ sudo dnf history info 27
    Transaction ID : 27
    Begin time     : Tue 07 Aug 2018 02:48:52 PM PDT
    Begin rpmdb    : 1717:e57b6de7e8dc0b72c3dacc90596fb63c4c2c276d
    End time       : Tue 07 Aug 2018 02:49:11 PM PDT (19 seconds)
    End rpmdb      : 1717:47ced051c80064b03ee9e675b7055c7fb77159ee
    User           : Gene <gene>
    Return-Code    : Success
    Command Line   : upgrade
    Transaction performed with:
        Installed     dnf-2.7.5-12.fc28.noarch @fedora
        Upgraded      rpm-4.14.1-9.fc28.x86_64 @updates
    Packages Altered:
        Upgraded bind-export-libs-32:9.11.4-1.fc28.x86_64 @updates
        Upgrade                   32:9.11.4-4.fc28.x86_64 @updates
    ...

    dd_wizard

  3. #3
    Join Date
    Feb 2016
    Location
    here
    Posts
    26
    Linux (Fedora) Firefox 62.0

    Re: script test upgrade

    Hi,
    Thanks for stopping by. I already tried to use dnf history but upgrade does not show in my server, I don't know why but only installs show. Actually the place where it should show is blank.

  4. #4
    Join Date
    Dec 2017
    Location
    Sosnowiec, PL
    Age
    36
    Posts
    41
    Linux Firefox 62.0

    Re: script test upgrade

    Look at the command:
    Code:
    rpm -qa --last
    Code:
    rpm -qa --last | more
    It will show the last installation time of every package in system. Try | more to use pager, etc.
    marcin82

Similar Threads

  1. Test script for xdebug.
    By sepoto in forum Programming & Packaging
    Replies: 3
    Last Post: 20th January 2011, 10:56 PM
  2. linking libraries to a test script in another directory
    By RohanS in forum Programming & Packaging
    Replies: 1
    Last Post: 18th February 2010, 06:27 AM
  3. how to upgrade FC4 test to 5 core?
    By rs232 in forum EOL (End Of Life) Versions
    Replies: 1
    Last Post: 20th September 2006, 11:52 AM
  4. Setup Servers with an Easy to use script - Please Test
    By paul_mat in forum Servers & Networking
    Replies: 0
    Last Post: 13th April 2006, 09:18 AM
  5. FC4 test upgrade
    By centauri in forum Programming & Packaging
    Replies: 2
    Last Post: 2nd June 2005, 07:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •