There are three ways of holding back packages, with dpkg, aptitude or with dselect.
Using dpkg
Put a package on hold
echo "package hold" | dpkg --set-selections
Example
echo "apache2 hold" | dpkg --set-selections
Remove the hold
echo "package install" | dpkg --set-selections
Example
echo "apache2 install" | dpkg --set-selections
Knowing the status of your packages
dpkg --set-selections
Using aptitude
With aptitude, you can hold a package using
#aptitude hold package_name
Example
#aptitude hold apache2
and remove the hold with
aptitude unhold package_name
Example
#aptitude unhold apache2
Using dselect
With dselect, you just have to enter the [S]elect screen, find the package you wish to hold in its present state, and press the `=' key (or `H'). The changes will go live immediately after you exit the [S]elect screen.
Incoming search terms:
- aptitude hold (131)
- dpkg hold package (128)
- apt hold package (110)
- dpkg hold (99)
- debian hold package (98)
- aptitude hold package (65)
- apt-get hold package (54)
- apt hold (30)
- apt-get hold back package (27)
- debian unhold package (26)
-
Name
-
Craig Sanders
