Because of bug #693758 I'd like to prevent apt-get upgrade and Update Manager from updating the "libgtk2.0-0" package.
How can this be achieved?
|
Because of bug #693758 I'd like to prevent How can this be achieved? |
||||
Locking with Synaptic Package ManagerGo to Synaptic Package Manager (System > Administration > Synaptic Package Manager). Click the search button and type the package name. When you find the package, select it and go to the Package menu and select Lock Version.
That package will now not show in the update manager and will not be updated. HoldingThere are four ways of holding back packages: with dpkg, apt, aptitude or dselect. dpkgPut a package on hold:
Remove the hold:
Display the status of your packages:
Display the status of a single package:
aptHold a package:
Remove the hold:
aptitudeHold a package:
Remove the hold:
dselectWith dselect, enter the [S]elect screen, find the package you wish to hold in its present state and press = or H. The changes will take effect immediately after exiting the [S]elect screen. |
|||||||||||||||||||||
|
|
Since some time It is possible to hold more than one packages with one command and use wildcards. Prevent Firefox from updating
If you should deside to unhold them later, that would be the command:
|
||||
|
|
|
You can use on aptitude the "specific override", like this:
This is a one time only use of (not stored for future reinstalls), keep specific override, to reinstall all packages in your system but not oracle-java8-jre. If you use a keep specific override, the package will momentarily be in a state of keep an aptitude will not try to install it. A very good thing if you think your system was compromised some how. |
||||
|
|
|
To put a package "foo" on hold:
In your case we are going to put wine on hold:
To remove the hold:
|
|||||
|
|
See bugs #75332, #158981 and #72806. The summary is that hold at apt-get / aptitude level is not triggering hold status in dpkg (see bug 72806 especially) and update-manager reads status from dpkg. workaround is run as root:
|
||||
|
|
|
Occasionally one might want to hold back all the packages currently installed. Here's how. First save the current state, so you can undo:
Then, to hold back all the packages:
Finally, when you want to revert back to the previous state:
One use case for this might be when creating a VM or Amazon AMI snapshot to migrate from a QA to production environment. |
|||
|
|
|
I was looking for the same thing and after a lot of research I found that using the following syntax you can forbid one specific version but allow the next update: Package: compiz-plugins-main Pin: version 1:0.9.7.0~bzr19-0ubuntu10.1 Pin-Priority: -1 This goes into the /etc/apt/preferences file. |
|||||||||||||
|
|
If you have Synaptic installed you can select the package and use the menu Package -> Lock Version to prevent it being updated. You can install Synaptic with sudo apt-get install synaptic. I personally find it more useful than the Software Center... then again, I'm fairly old school. :) |
|||
|
|
|
Install Run using
From the package menu select Lock version:
And that is all, the version currently installed at the time of the lock will stay installed even during upgrades. |
|||||||||
|
|
Preventing a package from being installed is called "package holding" and it is very simple to do: echo package_name hold | dpkg --set-selections ...where *package_name* is the name of the package you want to prevent from installation. Note: the above command assumes root privileges. In other words, you will probably need to type |
|||||||||
|
|
Everything you ever wanted to know about "holding" and "pinning" packages to specific versions: https://help.ubuntu.com/community/PinningHowto |
|||
|
|
|
I synaptic you can freeze the version of a specific package I'm not a 100% sure as to whether this will amend apt-get but it will definately stop update manager. To freeze a package select it in synaptic then open the package menu and select freeze version. Hope this helps edit: This question 16668 deals with a similar situation |
||||
|
|
disable packages from the auto-update– hhlp Oct 26 '11 at 18:41