Exclude packages from `apt-get upgrade` [duplicate]
Possible Duplicate:
How to prevent updating of a specific package?
Keep the Ubuntu package version I'm using now
Is it possible to upgrade all packages except a given package? Is there something like apt-get upgrade --exclude package_to_exclude
?
To hold a package:
In short: sudo apt-mark hold <package>
or
echo <package> hold | sudo dpkg --set-selections
To unhold a package:
In short: sudo apt-mark unhold <package>
or
echo <package> install | sudo dpkg --set-selections
Check out "Introduction to Holding Packages" in the Ubuntu's Pinning Howto