包管理
一、YUM 镜像仓库
1.1 YUM 命令
yum [-y] [参数] [软件包名称]yum provides rz # 有的搜不到1.2 查看当前系统仓库:
yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com # 默认仓库地址
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
repo id repo name status
base/7/x86_64 CentOS-7 - Base - mirrors.aliyun.com 10,072
extras/7/x86_64 CentOS-7 - Extras - mirrors.aliyun.com 526
updates/7/x86_64 CentOS-7 - Updates - mirrors.aliyun.com 6,173
repolist: 16,771 # 默认仓库软件的个数1.3 修改默认的仓库
1.3.1 备份默认仓库
1.3.2 下载仓库到本地
1.3.3 检查配置是否正确
1.4 配置EPEL扩展仓库
二、RPM 软件包管理
2.1 命令语法
最后更新于