Before I upgrade my Linux distribution, I would like to upgrade all my packages - however, I want to stick to my current MySQL version (5.6).
I know there's the option to hold the package, like this:
sudo aptitude hold package_name
When I run
sudo apt-get upgrade, I have the following MySQL packages listed:
mysql-client-5.6 mysql-client-core-5.6 mysql-common mysql-common-5.6 mysql-server-5.6 mysql-server-core-5.6
Can I pass them all to the
hold command as arguments? Or is there an easier way to block my MySQL from upgrading?
Note: I'm working in a VM, so no GUI I could use, just the terminal.
OK, I tried it and YES, you can pass all of the packages to the
hold command, and they will be kept out of the upgrade.
I'm still not sure whether it's enough to hold only these packages in order to prevent MySQL upgrade (maybe other MySQL-specific packages should be held out as well?). For example, the command below, will hold lots of packages with "mysql" in the name, and I have no idea whether they're relevant or not:
sudo aptitude mysql-*