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

 

 

posted @ 2021-01-16 12:37  GetcharZp  阅读(97)  评论(0编辑  收藏  举报