RedHat 7 yum源替換
在RedHat沒有註冊的情況下,導致yum程式無法使用,提示如下,此時可用CentOS的地址進行替換
- This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
下面是解決辦法:
1.在/etc/yum.repos.d目錄下,建立一個檔案rhel-debuginfo.repo
2.編輯改檔案,新增如下內容:
附件是nginx的yum源:
1.在/etc/yum.repos.d目錄下,建立一個檔案rhel-debuginfo.repo
- touch rhel-debuginfo.repo
-
[base]
-
name=CentOS-$releasever - Base
-
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
-
gpgcheck=1
-
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
-
-
#released updates
-
[updates]
-
name=CentOS-$releasever - Updates
-
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
-
gpgcheck=1
-
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
-
-
[extras]
-
name=CentOS-$releasever - Extras
-
baseurl=http://mirrors.163.com/centos/7/extras//$basearch/
-
gpgcheck=1
-
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
-
-
[centosplus]
-
name=CentOS-$releasever - Plus
-
baseurl=http://mirrors.163.com/centos/7/centosplus//$basearch/
-
gpgcheck=1
-
enabled=0
-
-
[root@crm_db yum.repos.d]# more nginx.repo
-
[nginx]
-
name=nginx repo
-
baseurl=http://nginx.org/packages/rhel/7/$basearch/
-
gpgcheck=0
- enabled=1
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2150596/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- centos 替換yum源CentOS
- Linux之RedHat7如何更換yum源LinuxRedhat
- centos7替換yum源為阿里雲CentOS阿里
- readhalt7.4 系統替換 CentOS7 yum 源CentOS
- Redhat 7使用CentOS 7的Yum網路源RedhatCentOS
- redhat修改yum源(CENTOS)RedhatCentOS
- redhat 5.5 配置網路yum源Redhat
- RedHat8 配置本地yum源Redhat
- 怎樣替換 rhel 7.3 的 yum
- centos7 更換yum為阿里源或者別的源CentOS阿里
- Redhat8 yum源內網部署Redhat內網
- RedHat Linux 本地Yum源安裝RedhatLinux
- redhat6.6配置光碟為yum源Redhat
- centos7 更換yum源為阿里雲CentOS阿里
- 【YUM】Redhat5和6YUM源配置的區別Redhat
- redhat6.5 配置使用centos的yum源RedhatCentOS
- redhat 6 配置 yum 源的兩種方法Redhat
- Redhat(02):yum 配置Redhat
- redhat 6.0配置yumRedhat
- redhat6.7修改為centos6.7官方yum源RedhatCentOS
- Centos7配置阿里epel源|yum源CentOS阿里
- Linux CentOS 7 更新yum源LinuxCentOS
- winget 替換國內源
- RedHat6.5如何更新為CentOS6.5的YUM源RedhatCentOS
- redhat linux 5 之配置YUM源並安裝包RedhatLinux
- linux CentOS更換 ali YUM源LinuxCentOS
- CentOS 7 配置 阿里雲 yum源CentOS阿里
- 7-15 字串替換 (6分)字串
- Linux系統CentOS6 7 8更換阿里yum源的方法LinuxCentOS阿里
- Linux下更換預設yum源為網易yum源的操作記錄Linux
- 阿里開源軟體替換指南阿里
- RedHat Enterprise Linux 6.4使用Centos 6 的yum源RedhatLinuxCentOS
- (32位)RedHat6或CenterOS6配置yum源( 轉)RedhatROS
- Redhat 簡單本地yum 配置Redhat
- Redhat 5 上安裝yumRedhat
- redhat6.2配置本地yumRedhat
- [Linux7] HA Package Yum源配置LinuxPackage
- CentOS7 yum源修改為阿里,配置阿里epel源CentOS阿里