James B. Byrne
2008-Jun-18 17:21 UTC
[CentOS] YUM and installing older versions of software.
How does one specify a particular version of a software package to yum to install? Is this even possible? What happens to superceded pacjkages in repos? Are they simple removed/discarded? yum install package-X.Y.Z-A.el5 ??? The reason I ask is if a yum update goes awry for some reason then how does one revert to the previous (working) version? I seem to recall that up2date had a feature whereby one could locally archive superseded packages and rollback to a previous version was required. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
Ralph Angenendt
2008-Jun-18 17:29 UTC
[CentOS] YUM and installing older versions of software.
James B. Byrne wrote:> How does one specify a particular version of a software package to yum to > install? Is this even possible? What happens to superceded pacjkages in > repos? Are they simple removed/discarded? > > yum install package-X.Y.Z-A.el5 ???The yum version in 5.2 will have a --allow-downgrade option. Cheers, Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080618/3c78fc34/attachment-0002.sig>
Laurence Alexander Hurst
2008-Jun-19 09:25 UTC
[CentOS] YUM and installing older versions of software.
James B. Byrne wrote:> How does one specify a particular version of a software package to yum to > install? Is this even possible? What happens to superceded pacjkages in > repos? Are they simple removed/discarded? > > yum install package-X.Y.Z-A.el5 ??? > > The reason I ask is if a yum update goes awry for some reason then how does > one revert to the previous (working) version? I seem to recall that up2date > had a feature whereby one could locally archive superseded packages and > rollback to a previous version was required. >I've spent some time struggling with this issue too. The current version of yum will let you specify an older version (as detailed in the man page) and install it - but you then have to be very careful with your `yum update`s to avoid accidentally upgrading it. Once you have a later version installed you cannot, currently, downgrade it - the only way to install an older version "over" an existing version is to remove the package and then explicitly install the older version, and this can result in some nasty dependency issues. As has already been pointed out, this looks to be about to change in the next version(s) of yum in CentOS. Regards -Laurence