Downgrade Debian Packages

I had a Debian Sarge server on which I had installed some packages of lenny and some how libc got upgraded. After some time I need the older version of libc back to compile some other package. I googled it and found this link. Then did it in this way :

1. Restored my sources.list to point to Sarge's repo.
cat /etc/apt/sources.list
deb http://archive.debian.org/debian sarge main contrib non-free
deb http://archive.debian.org/debian-security sarge/updates main contrib non-free


2. Installed apt-show-versions
apt-get update
apt-get install apt-show-versions


3. This showed me that the release name for the packages is "oldstable"
apt-show-versions

4. Created the file /etc/apt/preferences
cat /etc/apt/preferences
Package: *
Pin: release a=oldstable
Pin-Priority: 1001


5. Did an upgrade, which showed me libc and some other packages will be downgraded
apt-get dist-upgrade

And I was ready to go with the software installation.

Comments

Popular Posts