vi /etc/yum.repos.d/redhat.repo
[redhat]
name = redhat
baseurl=file:///mnt
enabled=1
gpgcheck=1
gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release
yum install pcs失败,原因是因为pcs位于addons目录下,需要如此配饰yum文件repo源
[redhat]
name = redhat
baseurl=file:///mnt
enabled=1
gpgcheck=0
#gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release
[HA]
name=HA
baseurl=file:///mnt/addons/HighAvailability
enable=1
gpgcheck=0
来源:https://www.cnblogs.com/weikui/p/12153310.html