Possible Duplicate:
How to forbid updating of a specific package?

How to force an application to stay on the same current version?

For instance, I don't want the application to ask for an upgrade in the update manager, (I know that I can un-check it) but I don't want it to show up.

marked as duplicate by hhlp, enzotib, RolandiXor, Stefano Palazzo Jun 22 '11 at 13:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


With aptitude (terminal)

Use sudo aptitude hold packagename, i.e. sudo aptitude hold apache2. To undo do sudo aptitude unhold package_name.

Also see How to prevent a package from being updated in Ubuntu for more ways of achieving this.

In synaptic (GUI)

  1. Open Synaptic Package Manager (System > Administration > Synaptic Package Manager if you use gnome).
  2. Click search button and type the package name you want to hold.
  3. When you find package select it and go to Package (in menu) and click Lock Version.

As described by Re: Disable Package Upgrade and How To Disable Package From Updating In Ubuntu.


In addition to using the command "aptitude" already stated you may use The Synaptic Package Manager to "lock" a package. Simply select the package you want held, then select Package>Lock Version.

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