Rocky 9.8设置本地yum源
#先进入路径cd /etc/yum.repos.d#然后把所有的源移到文件夹里只留一个即可mkdir bakmv * bak/cp bak/rocky.repo#然后编辑配置文件编辑成功就可以挂载并安装服务了,其他的全删掉vim rocky.repo# rocky.repo## The mirrorlist system uses the connecting IP address of the client and the# update status of each mirror to pick current mirrors that are geographically# close to the client. You should use this for Rocky updates unless you are# manually picking other mirrors.## If the mirrorlist does not work for you, you can try the commented out# baseurl line instead.[baseos]nameRocky Linux $releasever - BaseOSbaseurlfile:///media/BaseOS/gpgcheck1enabled1countme1repo_gpgcheck0metadata_expire6hgpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9[appstream]nameRocky Linux $releasever - AppStreambaseurlfile:///media/AppStream/gpgcheck1enabled1repo_gpgcheck0countme1metadata_expire6hgpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9gpgcheck1#保存并退出:wqmount /dev/cdrom /mediayum -y install vim#成功即可sudo dnf groupinstall Development Tools -y 安装必要的开发软件包

相关新闻

最新新闻

日新闻

周新闻

月新闻