出自Guoshuang Wiki :
Apt-get commands | Aptitude commands | |
apt-get install package | aptitude install package | install package 安装软件包 |
apt-get install package -- reinstall | reinstall package 重新安装 | |
apt-get -f install | force install 强制安装 | |
apt-get remove package | aptitude remove package | remove package 删除软件包 |
apt-get remove package -- purge | aptitude purge package | remove package, include configuration files 删除软件及其配置文件 |
apt-get autoremove | auto remove unused packages 自动删除没用的软件包 | |
apt-get update | aptitude update | update the list of available packages 升级软件更新列表 |
apt-get upgrade | aptitude upgrade | upgrade packages 升级软件包 |
apt-get dist-upgrade | aptitude dist-upgrade | upgrade to a new release 升级到下一个发行版 |
apt-get build-dep package | install build dependency 安装编译依赖库 | |
apt-get source package | download source 下载源代码 | |
apt-get clean && apt-get autoclean | aptitude clean && aptitude autoclean | remove unused package files 删除没用的软件包 |
apt-cache search package | aptitude search package | search packages 在 cache 中搜索软件包 |
apt-cache show package | get more information 显示软件包信息 |