PDA

View Full Version : [SOLVED] locking version



leorolla
November 2nd, 2009, 01:12 PM
Hello,

If I lock the version of a package in synaptics, does apt-get respect it?

Does it survive after distribution ugrades?

Within a Gnome Desktop Hardy installation, if I lock Kile and Kdvi in synaptics, will Kdvi survive upgrading to Karmic and will Kile stay with the Hardy version (Kile 2.0) ?

Thanks!!!

lethalfang
November 5th, 2009, 08:06 AM
Hello,

If I lock the version of a package in synaptics, does apt-get respect it?

Does it survive after distribution ugrades?

Within a Gnome Desktop Hardy installation, if I lock Kile and Kdvi in synaptics, will Kdvi survive upgrading to Karmic and will Kile stay with the Hardy version (Kile 2.0) ?

Thanks!!!


You need to do the following to lock Kile and KDVI for apt-get:


sudo echo 'kile hold' | sudo dpkg --set-selections


To undo:

sudo echo 'kile install' | sudo dpkg --set-selections


To lock version in aptitude:


sudo aptitude hold kile

To undo:


sudo aptitude unhold kile

leorolla
February 18th, 2010, 05:39 PM
Thanks!

Recently I learned how to pin packages to different repository versions, which is closer to what I wanted.