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

 

 

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2022-02-04
  • 2022-02-26
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-07
  • 2021-12-23
  • 2021-09-11
相关资源
相似解决方案