apt
apt,即Advanced Packaging Tool,是Ubuntu系统下一款命令行包管理工具,提供检索、管理以及查询包信息等命令。类似apt-get
和apt-cache
。常用的Linux包管理命令分散在apt-get、apt-cache、apt-config这三个命令中。apt命令的引入就是为了解决命令过于分散的问题,它包括apt-get命令出现以来使用最广泛的功能选项,以及apt-cache和apt-config命令中很少用到的功能。但是apt-get提供比apt更多、更细化、更低级的操作功能。
常用命令:
- list - list packages based on package names
- search - search in package descriptions
- show - show package details
- install - install packages
- remove - remove packages
- automove - remove automatically all unused packages
- update - update list of available packages
- upgrade - upgrade the system by installing/upgrading packages
- full-upgrade - upgrade the system by removing/installing/upgrading packages
- edit-sources - edit the source information file