CENTOS 6-7的本地YUM源配置
本文档适合CENTOS 6-7的本地YUM源配置
cd /media cd CentOS_6.8_Final/ cd Packages
创建目录拷贝文件
mkdir /yum cp * /yum
配置yum源
cd /yum rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
rpm -ivh createrepo-0.9.9-24.el6.noarch.rpm
安装的列子
[root@hadoop yum]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
warning: deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:deltarpm ########################################### [100%]
[root@hadoop yum]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
warning: python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:python-deltarpm ########################################### [100%]
[root@hadoop yum]# rpm -ivh createrepo-0.9.9-22.el6.noarch.rpm
warning: createrepo-0.9.9-22.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:createrepo ########################################### [100%]
createrepo .
cd /etc/yum.repos.d/
rm -rf *
vi yum.local.repo
[local] name=yum local repo baseurl=file:///yum gpgcheck=0 enable=1 #保存退出
yum clean all
yum install gcc