关于Ubuntu下apt的一些用法及和yum的比较

因为win10有个子系统 ubantu 有时候为了本地开发方便还是要用到的. 安装一些软件时 apt和yum命令也是有差异的 个人比较喜欢yum

Centos和Ubuntu 包管理操作

操作 Centos Ubuntu
软件源配置文件 /etc/yum.conf /etc/apt/sources.list
安装软件包 yum install package apt-get install package
删除软件包 yum uninstall package apt-get remove package
删除有依赖关系软件包和配置文件 yum uninstall package apt-get autoremove package --purge
查看安装包 yum info package apt-cache show package
查看已安装的软件 yum info package apt-get install package 或 dpkg -s package
更新软件包列表 yum update apt-get update
清除缓存 yum clean apt-get clean
原文地址:https://www.cnblogs.com/lanbosm/p/9130211.html