本章讲述apt系列命令及本地源,网络源的配置,系统版本为Debian9.4,Vmware15.0.2
先来列举一下常用的apt系列的命令
- apt-get update 更新数据库缓存(类似于yum makecache)
- apt-get install xxx 安装某个软件包(类似于yum install xxx)
- apt-get remove xxx 卸载某个软件包(类似于yum remove xxx)
- apt-get –u xxx 升级某个软件包(类似于yum update xxx)
- apt-get clean 清空所有缓存(类似于yum clean)
- apt-get autoclean 只清空旧缓存(类似于yum clean oldheaders)
- apt-cache search xxx 搜索包名中带xxx字符串的软件包(类似于yum search xxx)
- apt-cache show xxx 显示软件包的详细信息
- apt-cache showkg xxx 显示软件包的大致信息
- apt-cdrom add 将cdrom自动添加到/etc/apt/source.list
- apt-cdrom ident 扫描cdrom
接下来做试验&#