Debian / Ubuntu Linux apt-get: Blacklist a Package From Installing

Posted on in Categories last updated September 29, 2012

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?