Yum
1, hanging in the ISO file
[[Email protected]]# Mount/dev/cdrom/media
2, Installation Createrepo
Createrepo is a configuration tool that configures the Yum source to check whether the installation of the Createrepo package is currently installed:
[Email protected]]# rpm-ivh createrepo-0.9.8-4.el6.noarch.rpm
Warning:createrepo-0.9.8-4.el6.noarch.rpm:header V3 rsa/sha256 Signature, key Idec551f03:nokey
Error:faileddependencies:
DELTARPM is needed by Createrepo-0.9.8-4.el6.noarch
PYTHON-DELTARPM is needed by Createrepo-0.9.8-4.el6.noarch
[Email protected]]# 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 Ec551f03:nokey
Preparing ... ########################################### [100%]
1:deltarpm ########################################### [100%]
[Email protected]]# 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/sha256signature, key ID Ec551f03:nokey
Preparing ... ########################################### [100%]
1:python-deltarpm ########################################### [100%]
[Email protected]]# rpm-ivh createrepo-0.9.8-4.el6.noarch.rpm
Warning:createrepo-0.9.8-4.el6.noarch.rpm:header V3 rsa/sha256 Signature, key Idec551f03:nokey
Preparing ... ########################################### [100%]
1:createrepo ########################################### [100%]
[email protected] yum] #cp-R/media/*/mnt
3, create the Yumrepository xml-rpm-metadata
Createrepo -g/mnt/server/repodata/repomd.xml/mnt/server/
Createrepo -g/mnt/highavailability/repodata/repomd.xml/mnt/highavailability/
Createrepo -g/mnt/loadbalancer/repodata/repomd.xml/mnt/loadbalancer/
Createrepo -g/mnt/resilientstorage/repodata/repomd.xml/mnt/resilientstorage/
4. Create a repo file for the local yum client
[[email protected] mnt] #cd/etc/yum.repos.d/
[Email protected]]# ll
Total 0
[Email protected]]# VI Local.repo
[Highavailability]
Name=highavailability
Baseurl=file:/mnt/highavailability
Enabled=1
Gpgcheck=0
Gpgkey=file:/mnt/rpm-gpg-key-oracle
[LoadBalancer]
Name= LoadBalance
Baseurl=file:/mnt/loadbalancer
Enabled=1
Gpgcheck=0
Gpgkey=file:/mnt/rpm-gpg-key-oracle
[Resilientstorage]
Name=resilientstorage
Baseurl=file:/mnt/resilientstorage
Enabled=1
Gpgcheck=0
Gpgkey=file:/mnt/rpm-gpg-key-oracle
[Server]
Name=server
Baseurl=file:/mnt/server
Gpgcheck=0
Enabled=1
Gpgkey=file:/mnt/rpm-gpg-key-oracle
Yum Local wine configuration is complete after saving, can be tested with yum install GCC
Didn ' t install Anykeys
Linux 6.2 Configuration Yum Local