How to keep installed a given version of a Debian package?

VirtualBox 4.0.2 is available for Debian Lenny but I do not want to upgrade it now.Here is one solution to prevent an automatic upgrade :

root@localhost:~# echo “virtualbox-4.0 hold” |dpkg –set-selections

To verify the previous modification :

root@localhost:~# dpkg –get-selections |grep virtualbox

virtualbox-3.1                    deinstall
virtualbox-3.2                    deinstall
virtualbox-4.0                    hold

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.