RHEL Switch to CentOS repo

user-pic
Vote 0 Votes

因為 RHEL 的 $releasever 的變數和 CentOS 不同,無法直接使用 CentOS repo,需將 repo 檔中的變數寫死後使用


以上是 7 版的 repo 檔,若是 8 版,把檔案裡面的 7 改成 8 即可
curl https://gist.githubusercontent.com/pankpan/1649b48550949ed022086172b990a2d7/raw/1afd6968c702346009f48ba1047a1af2a14be4ba/CentOS-Base.repo > /etc/yum.repos.d/CentOS-Base.repo
curl http://mirror01.idc.hinet.net/CentOS/RPM-GPG-KEY-CentOS-7 > /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
yum -y update

About this Entry

This page contains a single entry by Pank published on February 3, 2020 5:15 PM.

DBeaver was the previous entry in this blog.

Windows 10 built-in screen shot is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives