Reference blog: https://blog.csdn.net/yjk13703623757/article/details/78945576
1. Install the software
Use the command
sudu apt-get install 包名
E.g
# Install the latest Redis sudo APT-GET install Redis # install the specified version of Redis sudo APT-GET install Redis = 3.0
2. Update Software
①. Update Software
sudo apt update
View the list can be updated
# View updates the list of APT List - upgradable # Check whether mysql update APT List --upgradable | grep mysql-Server
②. Exclude some software updates
upgrade default will update all updatable components and software, including system kernel. By the apt-mark hold the specified package lock which prevents updates, additionally may be used to exclude the locking apt-mark unhold restore its update.
For example, the official source speed my docker-ce used is very slow, I do not want to update it, you can use the following commands to manipulate.
# Prevent update APT -mark the HOLD docker- ce # recover update APT -mark unhold Docker-ce
As another example, prevent the Ubuntu kernel update
# Prevent update linux the nucleus Sudo Apt-Mark Hold linux-Image-Generic linux-Headers- Generic # cancel Sudo Apt-Mark Unhold linux-Image-Generic linux-Headers-Generic
3. Uninstall software