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