1、cat /etc/yum.repos.d/rhel-source.repo
- [HighAvailability]
- name=Red Hat Enterprise Linux $releasever – $basearch –HighAvailability
- baseurl=file:///mnt/HighAvailability/
- enabled=1
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
- [LoadBalancer]
- name=Red Hat Enterprise Linux $releasever – $basearch – LoadBalancer
- baseurl=file:///mnt/LoadBalancer
- enabled=1
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
- [Server]
- name=Red Hat Enterprise Linux $releasever – $basearch – Server
- baseurl=file:///mnt/Server
- enabled=1
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
- [ResilientStorage]
- name=Red Hat Enterprise Linux $releasever – $basearch – ResilientStorage
- baseurl=file:///mnt/ResilientStorage
- enabled=1
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
2、yum clean all
3、yum list
阅读(2153) | 评论(0) | 转发(0) |