Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Debian GNU/Linux Reference Guide
Prev Home Next

6.4.6 Holding older packages

For example, holding of libc6 and libc6-dev for dselect and aptitude install package can be done as follows:

     # echo -e "libc6 hold\nlibc6-dev hold" | dpkg --set-selections

aptitude install package will not be hindered by this "hold". To hold a package through forcing automatic downgrade for aptitude upgrade package or aptitude dist-upgrade, add the following to /etc/apt/preferences:

     Package: libc6
     Pin: release a=stable
     Pin-Priority: 2000

Here the "Package:" entry cannot use entries such as "libc6*". If you need to keep all binary packages related to the glibc source package in a synchronized version, you need to list them explicitly.

The following will list packages on hold:

     dpkg --get-selections "*"|grep -e "hold$"

Debian GNU/Linux Reference Guide
Prev Home Next

 
 
  Published under the terms of the GNU General Public License Design by Interspire