最快配置本地Yum仓库
配置本地Yum仓库 [root@localhost test]# lsaa.txt bb.txt rhel-6.4-x86_64.iso test.sh[root@localhost test]# mount -o loop rhel-6.4-x86_64.iso /media/ //系统介质挂载到/media/[root@localhost yum.repos.d]# cd /etc/yum.repos.d/ | lsrhel-source.repo[root@localhost yum.repos.d]# cp rhel-source.repo rhel-source.repo.bak[root@localhost yum.repos.d]# vim rhel-source.repo[root@localhost yum.repos.d]# cat rhel-source.repo[rhel-source] //[rhel-source]与下面的[rhel-source-beta]改一个就好,这是两个源name=Red Hat Enterprise Linux $releasever - $basearch - Sourcebaseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/enabled=0gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-source-beta]name=Red Hat Enterprise Linux $releasever Beta - $basearch - Sourcebaseurl=file:///media/enabled=1 //是否启用,1为启用,0为不启用gpgcheck=1 //是否校验gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release//配置文件完成,yum配置结束,下面安装一个软件测试是否成功[root@localhost yum.repos.d]# [root@localhost yum.repos.d]# yum install gcc //测试安装Loaded plugins: product-id,refresh-packagekit,security,subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.rhel-source-beta | 3.9 kB 00:00 ... rhel-source-beta/primary_db | 3.1 MB 00:00 ... .............................//省领略 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 解决yum命令失效,vim: command not found
- scala – 修剪案例类的String字段的值
- 在Twitter Bootstrap中如何使用CSS将文本与元素的中间对齐?
- 如何使用spraytestkit和HttpServiceActor进行scalatest工作
- angularjs – $cookies对象没有属性
- 如何在“构建”之后更改角位置的dist文件夹路径
- 使用Angular 2 Forms动态标记字段的正确方法是什么?
- angularjs – 如何访问Angular指令中的dom元素
- 官方Angular 2 http教程中的私有变量命名约定
- scala – 有没有办法让ArrowAssoc在模式匹配中工作?