PDA

View Full Version : [ubuntu] How to protect a package from being upgraded



jocampo
March 14th, 2010, 06:18 PM
Hi,

I do have virtualbox-3.0 on my Ubuntu Headless server that I do NOT WANT to be upgraded. How do I run "aptitude" command so I can download regular patches WITHOUT upgrading Virtual Box?

I remember or I think there is a way, like blocking that package from being touched by "aptitude" or something but can not remember ... can someone please provide some insight?

Thanks in advance,

joberly
March 15th, 2010, 02:15 AM
The apt_preferences (http://linux.die.net/man/5/apt_preferences) man page may be what you're looking for.

Zeosa
March 15th, 2010, 11:29 AM
echo virtualbox-3.0 hold | sudo dpkg --set-selections