https://wiki.archlinux.org/api.php?action=feedcontributions&user=Dislexable&feedformat=atomArchWiki - User contributions [en]2024-03-28T14:45:40ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Talk:Downgrading_packages&diff=224052Talk:Downgrading packages2012-09-19T23:48:57Z<p>Dislexable: </p>
<hr />
<div>==Parallel Programs Dependency Issue==<br />
There is another problem you haven't considered:<br />
When there are already vital packages installed (like xorg) that require the newer version of the programm (like gcc-4.x).<br />
<br />
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?<br />
<br />
====Answer====<br />
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.<br />
<br />
Keeping two or more versions of a particular program installed is possible in many cases.<br />
<br />
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. [[User:KitchM|KitchM]] 13:09, 6 August 2009 (EDT)<br />
<br />
== No CLI ==<br />
<br />
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. - [[User:KitchM|KitchM]] 00:08, 22 October 2009 (EDT)<br />
: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. -- [[User:Karol|Karol]] ([[User talk:Karol|talk]]) 22:22, 30 May 2012 (UTC)<br />
<br />
== Not sure how to add this... ==<br />
<br />
#zsh<br />
<br />
#use a simple var during downgrade process<br />
downgrade="exact-package-package-name"<br />
<br />
#make sure to remove the package and its configs<br />
sudo pacman -Rn $downgrade<br />
<br />
#OPTIONALLY search for config files in the common places<br />
ls -ah ~/ | grep $downgrade<br />
#and remove them<br />
rm -R ./$downgrade<br />
<br />
#build directory<br />
mkdir /tmp/$downgrade && cd /tmp/$downgrade<br />
<br />
#make your way to http://pkgbuild.com/git/aur-mirror.git<br />
#using the web interface locate the version of the package you would like to install<br />
#copy the link of the tree view of the package directory (eg http://pkgbuild.com/git/aur-mirror.git/tree/dropbox?id=b19a54c808554c796f310747725ad2ff4291e44a) <br />
<br />
#scrape the link for files and output them to 'files'<br />
wget -q -O - 'http://pkgbuild.com/git/aur-mirror.git/tree/dropbox?id=b19a54c808554c796f310747725ad2ff4291e44a' | grep -o "/git/aur-mirror.git/plain/[^']*" | sed -e 's/^/http:\/\/pkgbuild.com/' > files<br />
<br />
#download the files<br />
wget -qi files<br />
<br />
#clean file names (will generate errors, so just ignore them)<br />
ls | sed -n 's/\([^?]*\)\(.*\)/mv "\1\2" "\1"/p' | sh<br />
<br />
#build the package<br />
makepkg -s<br />
<br />
#install<br />
pacman -U $downgrade*.pkg.tar.xz<br />
<br />
#optionally clean up environment<br />
cd && rm /tmp/$downgrade<br />
unset downgrade</div>Dislexablehttps://wiki.archlinux.org/index.php?title=Talk:Downgrading_packages&diff=224051Talk:Downgrading packages2012-09-19T23:47:39Z<p>Dislexable: /* Not sure how to add this... */ new section</p>
<hr />
<div>==Parallel Programs Dependency Issue==<br />
There is another problem you haven't considered:<br />
When there are already vital packages installed (like xorg) that require the newer version of the programm (like gcc-4.x).<br />
<br />
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?<br />
<br />
====Answer====<br />
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.<br />
<br />
Keeping two or more versions of a particular program installed is possible in many cases.<br />
<br />
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. [[User:KitchM|KitchM]] 13:09, 6 August 2009 (EDT)<br />
<br />
== No CLI ==<br />
<br />
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. - [[User:KitchM|KitchM]] 00:08, 22 October 2009 (EDT)<br />
: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. -- [[User:Karol|Karol]] ([[User talk:Karol|talk]]) 22:22, 30 May 2012 (UTC)<br />
<br />
== Not sure how to add this... ==<br />
<br />
#zsh<br />
<br />
#use a simple var during downgrade process<br />
downgrade="exact-package-package-name"<br />
<br />
#make sure to remove the package and its configs<br />
sudo pacman -Rn $downgrade<br />
<br />
#OPTIONALLY search for config files in the common places<br />
ls ~/ | grep $downgrade<br />
#and remove them<br />
rm -R ./$downgrade<br />
<br />
#build directory<br />
mkdir /tmp/$downgrade && cd /tmp/$downgrade<br />
<br />
#make your way to http://pkgbuild.com/git/aur-mirror.git<br />
#using the web interface locate the version of the package you would like to install<br />
#copy the link of the tree view of the package directory (eg http://pkgbuild.com/git/aur-mirror.git/tree/dropbox?id=b19a54c808554c796f310747725ad2ff4291e44a) <br />
<br />
#scrape the link for files and output them to 'files'<br />
wget -q -O - 'http://pkgbuild.com/git/aur-mirror.git/tree/dropbox?id=b19a54c808554c796f310747725ad2ff4291e44a' | grep -o "/git/aur-mirror.git/plain/[^']*" | sed -e 's/^/http:\/\/pkgbuild.com/' > files<br />
<br />
#download the files<br />
wget -qi files<br />
<br />
#clean file names (will generate errors, so just ignore them)<br />
ls | sed -n 's/\([^?]*\)\(.*\)/mv "\1\2" "\1"/p' | sh<br />
<br />
#build the package<br />
makepkg -s<br />
<br />
#install<br />
pacman -U $downgrade*.pkg.tar.xz<br />
<br />
#optionally clean up environment<br />
cd && rm /tmp/$downgrade<br />
unset downgrade</div>Dislexable