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?

link|improve this question

68% accept rate
Actually you can do this with several methods, see the link I gave you above. – bodhi.zazen Jan 30 at 4:09
feedback

closed as exact duplicate by bodhi.zazen, Uri Herrera, jokerdino, Jacob Johan Edwards, fossfreedom Jan 30 at 7:34

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

2 Answers

up vote 3 down vote accepted

In short: sudo apt-mark hold <package>

or

echo <package> hold | sudo dpkg --set-selections
link|improve this answer
I get the following error: Usage: apt-mark [options] {markauto|unmarkauto} packages... apt-mark: error: first argument must be 'markauto', 'unmarkauto' or 'showauto' – Olivier Lalonde Jan 30 at 4:25
Strange. It works for me. Just tried it using sudo apt-mark hold unity-greeter – Zoke Jan 30 at 4:28
feedback

Check out "Introduction to Holding Packages" in the Ubuntu's Pinning Howto

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.