Talk:Downgrading packages

From ArchWiki
Revision as of 23:47, 19 September 2012 by Dislexable (talk | contribs) (Not sure how to add this...: new section)
Jump to: navigation, search

Parallel Programs Dependency Issue

There is another problem you haven't considered: When there are already vital packages installed (like xorg) that require the newer version of the programm (like gcc-4.x).

Is there a way to tell pacman to install the older version (in my case gcc-3.x) parallel to the newer version, thus not hurting any dependencies?


Sometimes the only way to make something work is to make sure that the dependency's version is downward compatible. If it isn't, then the older version of the program itself needs to be adjusted to work, and that is something that programmers are obviously not likely to do.

Keeping two or more versions of a particular program installed is possible in many cases.

In any case, it appears that the only accurate information we have on pacman is found at "man pacman" and "man pacman.conf" from the command line. Perhaps you will find the proper procedure there. KitchM 13:09, 6 August 2009 (EDT)


The article fails to explain what to do when the system no longer boots in a usable manner and the user cannot get to the command prompt. None of the mentioned suggestions will work then. Even if one uses the install disk, the same problem applies. - KitchM 00:08, 22 October 2009 (EDT)

Why wouldn't the liveCD boot fine? If it does and the hard drive still works, you should chroot and fix things. This article is about downgrading the packages, so this is out of scope here. -- Karol (talk) 22:22, 30 May 2012 (UTC)

Not sure how to add this...


#use a simple var during downgrade process

#make sure to remove the package and its configs
sudo pacman -Rn $downgrade

#OPTIONALLY search for config files in the common places
ls ~/ | grep $downgrade
#and remove them
rm -R ./$downgrade

#build directory
mkdir /tmp/$downgrade && cd /tmp/$downgrade

#make your way to
#using the web interface locate the version of the package you would like to install
#copy the link of the tree view of the package directory (eg 

#scrape the link for files and output them to 'files'
wget -q -O - '' | grep -o "/git/aur-mirror.git/plain/[^']*" | sed -e 's/^/http:\/\/' > files

#download the files
wget -qi files

#clean file names (will generate errors, so just ignore them)
ls | sed -n 's/\([^?]*\)\(.*\)/mv "\1\2" "\1"/p' | sh

#build the package
makepkg -s

pacman -U $downgrade*.pkg.tar.xz

#optionally clean up environment
cd && rm /tmp/$downgrade
unset downgrade