Debian 10218 Published by

nixCraft shows you how to blacklist a package from installing



I've build my own lighttpd .deb package and I do not want to upgrade it using the apt-get command. Also, I do not want to upgrade a few more packages such as php5-cgi, httpd and so on. How do I blacklist a package or packages so that when I run apt-get upgrade, it will ignore blacklisted packages and install the rest of updates under Debian or Ubuntu Linux server system?
  Debian / Ubuntu Linux apt-get: Blacklist a Package From Installing