apt 常用命令

apt 常用命令

PS:Ubuntu、Debian 默认使用 apt 对程序包进行管理;RedHat、Centos 默认使用 yum对包进行管理

 

搜索程序包:

apt-cache search 包名

下载程序包:

apt-get install 包名

卸载程序包:

apt-get remove 包名

删除所有已下载的包文件:

apt-get clean

删除已下载的旧包文件:

apt-get autoclean

卸载自动安装且不再使用的包:

apt-get autoremove

更新程序

apt-get update

 

Aspire to inspire until I expire
原文地址:https://www.cnblogs.com/GetcharZp/p/14285526.html