Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  YUM downgrade syntax for AIX

    Posted Fri April 10, 2020 09:36 AM

    Originally posted by: christophe41


    Hello,

    We would like to know the right syntax  for the   YUM downgrade  command as it seems that the   --test   option    or   --nodeps  are not available.

     

    root@apaai001:/export/nim/divers_sources/OpenSourcesPourAIX/ref-yum/AIX_Toolbox/rrdtool#yum downgrade rrdtool-perl-1.4.8-2.aix5.1.ppc.rpm --test    
    Usage: yum [options] COMMAND

    List of Commands:

    check          Check for problems in the rpmdb
    check-update   Check for available package updates
    clean          Remove cached data
    deplist        List a package's dependencies
    distribution-synchronization Synchronize installed packages to the latest available versions
    downgrade      downgrade a package
    erase          Remove a package or packages from your system
    groups         Display, or use, the groups information
    help           Display a helpful usage message
    history        Display, or use, the transaction history
    info           Display details about a package or group of packages
    install        Install a package or packages on your system
    list           List a package or groups of packages
    load-transaction load a saved transaction from filename
    makecache      Generate the metadata cache
    provides       Find what package provides the given value
    reinstall      reinstall a package
    repolist       Display the configured software repositories
    resolvedep     Determine which package provides the given dependency
    search         Search package details for the given string
    shell          Run an interactive yum shell
    update         Update a package or packages on your system
    upgrade        Update packages taking obsoletes into account
    version        Display a version for the machine and/or available repos.


    Command line error: no such option: --test

     

    Is there an AIX  documentation somewhere to check the correct and available options for the    yum downgrade   command ?

     

    Yesterday we had to downgrade a package. The   YUM HISTORY UNDO tran_ID   did not work successfully.

    Fortunately the   --oldpackage  plus    --nodeps     options of the    RPM command saved us.

     

    Does that mean that in case of  downgrades of packages     RPM --oldpackage   command    is  more efficient   than   the  YUM downgrade command ?

     

    For exemple if we want to check that a specific package can be  downgraded to a specific version,  we would have to run the   rpm command below.

     

    rpm -Uvh --oldpackage rrdtool-perl-1.4.8-2.aix5.1.ppc.rpm --test

     

    And if needed we can even group dependant packages.

     

    rpm -Uvh --oldpackage rrdtool-perl-1.4.8-2.aix5.1.ppc.rpm     rrdtool-1.4.8-2.aix5.1.ppc.rpm  --nodeps  --test    

     

    From you own experience what is the preferred method      YUM downgrade     or   RPM --oldpackage   ?

     

    I thank you very much for your help,

     

    Have a nice day,

     

     

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: YUM downgrade syntax for AIX

    Posted Sat April 18, 2020 01:36 AM

    Originally posted by: sangameshm


    I would prefer YUM downgrade as it will take care of dependencies.

     

    $ yum list --showduplicates httpd
    Installed Packages
    httpd.ppc                                                                          2.4.41-1                                                                          installed  
    Available Packages
    httpd.ppc                                                                          2.4.18-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.23-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.25-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.25-2                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.27-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.29-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.29-2                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.33-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.34-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.37-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.37-2                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.38-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.38-2                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.39-1                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.39-2                                                                          AIX_Toolbox
    httpd.ppc                                                                          2.4.41-1                                                                          AIX_Toolbox

     

    $ yum downgrade httpd-2.4.18-1
    Setting up Downgrade Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package httpd.ppc 0:2.4.18-1 will be a downgrade
    --> Processing Dependency: lua >= 5.1.5 for package: httpd-2.4.18-1.ppc
    ---> Package httpd.ppc 0:2.4.41-1 will be erased
    --> Running transaction check
    ---> Package lua.ppc 0:5.3.4-2 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================================================================================================================
     Package                                 Arch                                  Version                                      Repository                                     Size
    ================================================================================================================================================================================
    Downgrading:
     httpd                                   ppc                                   2.4.18-1                                     AIX_Toolbox                                   3.9 M
    Installing for dependencies:
     lua                                     ppc                                   5.3.4-2                                      AIX_Toolbox                                   1.7 M

    Transaction Summary
    ================================================================================================================================================================================
    Install       1 Package
    Downgrade     1 Package

    Total size: 5.5 M
    Total download size: 3.9 M

     

    Thanks,

    Sangamesh


    #AIXOpenSource
    #AIX-Open-Source-Software