Re: to not apt-get upgrade certain packages - SOLVED
On 9/15/05, Kjetil Kjernsmo <[EMAIL PROTECTED]> wrote: > On torsdag 15 september 2005, 03:34, Roberto C. Sanchez wrote: > > For dpkg and others you will need to read the man > > pages, or maybe someone else can explain how. > > Yup, I think > echo "libwine hold" | dpkg --set-selections > echo "wine hold" | dpkg --set-selections > echo "wine-utils hold" | dpkg --set-selections > will do the trick. Worked like a charm. Thanks a lot. Thanks also to everyone who replied. The above method works best. ganesh
Re: to not apt-get upgrade certain packages
Ganeshram Iyer wrote: > Hello all, > I am trying to ensure that certain packages that I have apt-get > installed are never upgraded (even security). specifically these are > libwine wine wine-utils. I have version 20041019 the version > recommended by winetools package > (http://www.von-thadden.de/Joachim/WineTools/) and I am more than > happy with this version. [snip] Others have given good answers, but for the sake of completitude: you can put the packages on hold with aptitude (I personally use aptitude exclusively): aptitude hold libwine wine wine-utils With this single line, you will prevent the packages from being ever upgraded. If you ever uninstall them, it will also prevent them from being reinstalled, though. A slightly more complex solution would be to take advantage of the /etc/apt/preferences conf file (of which I am a big fan). You sould add the following lines: Package: $pack Pin: version $ver Pin-Priority: 1100 Where $pack is the name of the package being "held", and $ver the version, as shown in the Version column of "dpkg -l $pack". What you do with these lines is to give $pack $ver a very high priority, so that when new versions of the package are found in the repositories, they are not installed, because their priority is lower. For priority figures: "man apt_preferences". The slight advantage of the /etc/apt/preferences solution is that if you uninstall the $ver version, you "aptitude install $pack" will reinstall it w/o problem (if it is still available in the repositories, else dpkg -i the .deb in /var/cache/apt/archives/). HTH, Basajaun -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: to not apt-get upgrade certain packages
On torsdag 15 september 2005, 03:34, Roberto C. Sanchez wrote: > For dpkg and others you will need to read the man > pages, or maybe someone else can explain how. Yup, I think echo "libwine hold" | dpkg --set-selections echo "wine hold" | dpkg --set-selections echo "wine-utils hold" | dpkg --set-selections will do the trick. Cheers, Kjetil -- Kjetil Kjernsmo Programmer / Astrophysicist / Ski-orienteer / Orienteer / Mountaineer [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ OpenPGP KeyID: 6A6A0BBC -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: to not apt-get upgrade certain packages
On Wed, Sep 14, 2005 at 08:14:26PM -0500, Ganeshram Iyer wrote: > Hello all, > I am trying to ensure that certain packages that I have apt-get > installed are never upgraded (even security). specifically these are > libwine wine wine-utils. I have version 20041019 the version > recommended by winetools package > (http://www.von-thadden.de/Joachim/WineTools/) and I am more than > happy with this version. the other versions do not work as well (I > have tried). now everytime i need to do an apt-get upgrade I first > simulate with a (-s) and see which packages other than the wine* > packages have to be upgraded and select those manually to be updated > using apt-get. anyway I can tell apt-get upgrade to never upgrade > those three packages and leave them untouched? I tried to do something > with apt-preferences but got nowhere (still a newbie - just 2 months > with debian - although a year with rpm based distros) > If you use a package manager like dselect or aptitude, then you can tell it to "hold" the package. You can also do this directly with dpkg. In aptitude, simply pressing equals (=) with the package name selected places it on hold. For dpkg and others you will need to read the man pages, or maybe someone else can explain how. -Roberto -- Roberto C. Sanchez http://familiasanchez.net/~roberto pgpMCkFmAIleP.pgp Description: PGP signature
to not apt-get upgrade certain packages
Hello all, I am trying to ensure that certain packages that I have apt-get installed are never upgraded (even security). specifically these are libwine wine wine-utils. I have version 20041019 the version recommended by winetools package (http://www.von-thadden.de/Joachim/WineTools/) and I am more than happy with this version. the other versions do not work as well (I have tried). now everytime i need to do an apt-get upgrade I first simulate with a (-s) and see which packages other than the wine* packages have to be upgraded and select those manually to be updated using apt-get. anyway I can tell apt-get upgrade to never upgrade those three packages and leave them untouched? I tried to do something with apt-preferences but got nowhere (still a newbie - just 2 months with debian - although a year with rpm based distros) thanks ganesh