Debian apt-get upgrade exception

Debian LogoQuick tip to help you to manage packages on a Debian distribution:
How to perform an upgrade (apt-get upgrade) without upgrading one or more critical packages?

I’m running a Debian server with a Groundwork monitoring tool. Groundwork requires specific MySQL packages that cannot be upgraded.

# cat <<END | dpkg --set-selections
mysql-common hold
mysql-client-5.0 hold
mysql-server-5.0 hold
END
# dpkg --get-selections "*"|grep -e "hold$"

You can now safely keep your system up-to-date!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.