Install particular version of package?

Steffen Grunewald steffen.grunewald at aei.mpg.de
Tue Mar 5 10:05:29 CET 2024


Hi all,

since I seem to be the only one who ever faced this question, I'll also
be the only one to answer it...


On Fri, 2024-03-01 at 14:05:28 +0100, Steffen Grunewald wrote:
> 
> Is it possible to specify "package=1.2.3+deb12" in a package_config/CLASS
> file for the "instsoft" task, or

It is possible, but mistyping the version (or specifying one that has been
removed from the repository) will result in the infamous "25600 25600" error,
causing not only this particular package missing from the installation but
a whole lot more!

> do I have to "apt-get -y install package=1.2.3+deb12" during the "configure"
> task, in a scripts/CLASS/99downgrade script?

This way is much safer, and it saves the trouble of getting things right
when an upgraded package fixes the broken one - if you check the installed
version ("dpkg -l package | awk '{print $3}'") and in that "case" *only*
perform the downgrade.

HTH someone else,

Steffen


More information about the linux-fai mailing list