apt提供了大多数与apt-get及apt-cache有的功能,但更方便使用。
常用命令:
- list - 根据名称列出软件包
dpkg list - search - 搜索软件包描述
apt-cache search - show - 显示软件包细节
apt-cache show - install - 安装软件包
apt-get install - remove - 移除软件包
apt-get remove - update - 更新可用软件包列表
apt-get update - upgrade - 通过 安装/升级 软件来更新系统
apt-get upgrade - full-upgrade - 通过 卸载/安装/升级 来更新系统
apt-get dist-upgrade - edit-sources - 编辑软件源信息文件
vim /etc/apt/sources.list