Redhat7更换centos7的yum源

2026-02-22 04:07:33

1、已加载插件product-id, search-disabled-repos, subscription-manager


This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repolist: 0

Redhat7更换centos7的yum源

2、卸载红帽的源,具体操作如下图

Redhat7更换centos7的yum源

3、查询有redhat的源 删除redhat的源包

Redhat7更换centos7的yum源

4、下载centos 中的源安装包,如果没有下载可以通过xftp工具上传。


Redhat7更换centos7的yum源

5、安装centos源,需要下载如图软件(经验没办法加上)

Redhat7更换centos7的yum源

6、更换系统的源,下载163的centos源

Redhat7更换centos7的yum源

7、然后修改源配置文件,将centos信息改一下。将该文件中的版本替换为对应的版本号,此系统中为7

Redhat7更换centos7的yum源

8、清理原有缓存 .然后安装软件试一下。

Redhat7更换centos7的yum源

9、重建缓存,提高搜索安装软件的速度

Redhat7更换centos7的yum源

10、然后安装测试一下,看看是不是可以使用了

Redhat7更换centos7的yum源

Redhat7更换centos7的yum源

猜你喜欢