yum仓库安装
1.什么是yum仓库
(1)自己解决依赖关系
(2)只需要软件命令
存放仓库的位置 /etc/yum.repos.d/
仓库文件的后缀名 .repo
查看文件内容 cat more less head tail
2.仓库解释
(1)[base] ---仓库标签(不能有重复的)
(2)name=CentOS-$releasever -Base ---仓库的名字(随便写,但最好不重复)
(3)baseurl=http:///....----仓库路径
仓库的类型分为:网络仓库(http:///...)和本地仓库(file:///opt/....)----第三根斜线表示根
(4)gpgcheck=1 gpgcheck=0
仓库的验证:1---开启验证 0----不启动验证功能
(5)gpgkey=file:///etc..... ---验证文件位置
(6)enable=1
3.自己创建一个本地仓库
步骤如上(1)(2)(3)(4)---gpgcheck=0,不开启验证所以跳过步骤(5)(6)
4.其他命令
mv ----移动
yum repolist ----检查仓库是否可用
yum clean all ----清除缓存
yum install -----下载
yum remove ----卸载