operating | command |
---|---|
ubuntu | |
Source operation | |
Source Configuration | https://www.cnblogs.com/wenlin-gk/p/11146228.html |
Source Update | sudo apt-get update |
View information source packages | apt-cache madison pkg view the available versions of apt-cache show package to view detailed information package apt-cache depends package is understood to use dependent apt-cache rdepends package is the package to see what packages are dependent on |
Package Operations | |
increase | sudo apt-get install package=version --reinstall |
delete | sudo apt remove package --purge also delete profiles |
batch deletion | sudo apt-get clean && sudo apt-get autoclean clean up unwanted package |
modify | |
Repair / Uninstall | sudo apt-get --fix-missing install |
upgrade | sudo apt-get upgrade |
Degraded version of 2-> 1 | apt install pkg dependent-pkg = 1 (already exists pkg = 2, downgrade to 1) |
View | apt list --installeddpkg -l | grep pkg_name |
View verification | sudo apt-get check check dependency of damage |
CentOS | |
Source / bag operation | /etc/yum.repos.d/xxx.repo 查看源中的软件版本 yum --showduplicates list docker | expand yum autoremove yum list installed | grep docker yum install -y docker-engine-1.12.6 yum remove -y docker-engine-1.12.6 docker-engine-selinux-1.12.6 yum erase -y docker-engine |
linux software operation
Guess you like
Origin www.cnblogs.com/wenlin-gk/p/11354967.html
Ranking