先確定網路已接上大網
#vi /etc/yum.conf
#yum update
#yum install XXX.rpm
-------------------------------------------------------
2.連結DVD光碟更新
可先將舊的repo檔移到新增old資料夾
Centos 6
#vi /etc/yum.repos.d/rhel-source.repo
[rhel-source]
baseurl=file:///media/RHEL_6.5\ x86_64\ Disc\ 1
enable=1
gpgcheck=0
/media/RHEL_6.5\ x86_64\ Disc\ 1 可先用cd /media/RHEL_6.5\ x86_64\ Disc\ 1
再手動複製,不要用key的
---------------------------------------------------------
Centos 7
[iso]
name=iso
baseurl=file:///run/media/root/RHEL-7.6\ Server.x86_64/
enabled=1
gpgcheck=0
/run/media/root/RHEL-7.6\ Server.x86_64/
可先用cd /run/media/root/RHEL_7.6\ x86_64\
再手動複製,不要用key的
#yum update #yum install ipmitool (確認連結有效)
#yum install XXX.rpm
2.連結DVD光碟更新
可先將舊的repo檔移到新增old資料夾
Centos 6
#vi /etc/yum.repos.d/rhel-source.repo
[rhel-source]
baseurl=file:///media/RHEL_6.5\ x86_64\ Disc\ 1
enable=1
gpgcheck=0
/media/RHEL_6.5\ x86_64\ Disc\ 1 可先用cd /media/RHEL_6.5\ x86_64\ Disc\ 1
再手動複製,不要用key的
---------------------------------------------------------
Centos 7
[iso]
name=iso
baseurl=file:///run/media/root/RHEL-7.6\ Server.x86_64/
enabled=1
gpgcheck=0
/run/media/root/RHEL-7.6\ Server.x86_64/
可先用cd /run/media/root/RHEL_7.6\ x86_64\
再手動複製,不要用key的
#yum update #yum install ipmitool (確認連結有效)
#yum install XXX.rpm
---------------------------------------
Centos 8 (Please confirm your iso image path)
[InstallMedia-BaseOS]
name=CentOS Linux 8 - BaseOS
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:////run/media/root/CentOS-8-1-1911-x86_64-dvd/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[InstallMedia-AppStream]
name=CentOS Linux 8 - AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:////run/media/root/CentOS-8-1-1911-x86_64-dvd/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
沒有留言:
張貼留言