Ubuntu新老版本apt命令对比

Ubuntu 16.04 LTS 替代 老版本Ubuntu
apt install 包名 替代 apt-get install 包名
apt remove 包名 替代 apt-get remove 包名
apt search 包名 替代 apt-cache search 包名
apt show 包名 替代 apt-cache show 包名
apt update 替代 apt-get update
apt upgrade 替代 apt-get upgrade
apt list –installed 替代 dpkg –get-selections | grep -v deinstall
替代 dpkg -l
apt list –upgradable替代 apt-get -u upgrade –assume-no
apt edit-sources 替代 echo ‘new line of text’ | sudo tee -a /etc/apt/sources.list
替代 sudo nano /etc/apt/sources.list
apt autoremove 替代 apt-get autoremove
apt purge 包名 替代 apt-get purge 包名

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注