vim /etc/yum.repos.d/virtualmin.repo
[virtualmin]
name=Red Hat Enterprise $releasever - $basearch - Virtualmin
baseurl=http://software.virtualmin.com/gpl/rhel/$releasever/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin
gpgcheck=1
[virtualmin-universal]
name=Virtualmin Distribution Neutral
baseurl=http://software.virtualmin.com/gpl/universal/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin
gpgcheck=1
导入凭证
rpm --import http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin
运行安装命令报错:
warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID 11f63c51: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/PRM-GPG-KEY-virtualmin
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/PRM-GPG-KEY-virtualmin
仔细一看是因为在安装virtualmin的时候把webmin也安装上了,所以就需要把webmin的凭证也导入;
rpm --import http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin
这问题就解决了!
转载于:https://blog.51cto.com/kernal/1540492