CentOS6.6配置yum
1、備份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、更換centos6yum源( centos6官方源已下線,建議切換centos-vault源 )
wget -O /etc/yum.repos.d/CentOS-Base.repo
3、yum clean all && yum makecache
yum clean all && yum makecache
配置過程如下
[root@master yum.repos.d]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
mv:是否覆蓋"/etc/yum.repos.d/CentOS-Base.repo.backup"?
[root@master yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo
--2022-10-10 15:31:43--
正在解析主機 mirrors.aliyun.com... 221.204.23.239, 221.204.23.240, 221.204.23.238, ...
正在連線 mirrors.aliyun.com|221.204.23.239|:443... 已連線。
已發出 HTTP 請求,正在等待回應... 200 OK
長度:2533 (2.5K) [application/octet-stream]
正在儲存至: “/etc/yum.repos.d/CentOS-Base.repo”
100%[==========================================================================>] 2,533 --.-K/s in 0.01s
2022-10-10 15:31:48 (201 KB/s) - 已儲存 “/etc/yum.repos.d/CentOS-Base.repo” [2533/2533])
[root@master yum.repos.d]# yum clean all
已載入外掛:fastestmirror, refresh-packagekit, security
Cleaning repos: base epel extras updates
清理一切
Cleaning up list of fastest mirrors
[root@master yum.repos.d]# yum makecache
已載入外掛:fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.7 kB 00:00
base/group_gz | 242 kB 00:02
base/filelists_db | 6.4 MB 01:00
base/primary_db | 4.7 MB 00:41
base/other_db | 2.8 MB 00:24
epel | 4.7 kB 00:00
epel/group_gz | 97 kB 00:01
epel/filelists_db | 12 MB 01:49
原文連結:https://blog.csdn.net/weixin_44943389/article/details/127247170
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31440090/viewspace-2932363/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 透過yum在centos6.6上安裝mysql5.7.21rpm包CentOSMySql
- 配置yum源
- yum 配置源
- yum源配置大全
- CentOS 配置yum源CentOS
- Redhat(02):yum 配置Redhat
- Centos-Stream 配置本地yum源和配置阿里雲yum源CentOS阿里
- Linux yum源配置以及yum命令講解Linux
- 如何配置Yum倉庫?
- CentOS安裝配置yumCentOS
- Centos6.6安裝教程CentOS
- centos7.5配置yum源CentOS
- yum配置及倉庫搭建
- CentOS6.9配置yum源CentOS
- oel 7 本地yum源配置
- Centos 7 常用yum源配置CentOS
- Centos系統配置yum源CentOS
- CentOS8配置本地yumCentOS
- RHEL7 yum源配置
- CentOS7--配置yum源CentOS
- CentOS6.8配置yum源CentOS
- Centos8.x yum 源配置 解決 yum 不可用CentOS
- 02_2__配置本地YUM源
- CentOS 7 配置 阿里雲 yum源CentOS阿里
- linux配置本地ISO的yum源Linux
- redhat 5.5 配置網路yum源Redhat
- Linux系統配置本地yum源Linux
- centos-7.6配置本地yum源CentOS
- CentOS7 配置 163 yum 源CentOS
- RedHat8 配置本地yum源Redhat
- 小知識:CentOS配置yum源/解決yum源失效問題CentOS
- Vmware配置Centos7配置yum源(新手小白福音)CentOS
- CentOS7配置yum國內源CentOS
- centos7配置yum國內映象CentOS
- CentOS8配置阿里雲YUM源CentOS阿里
- YUM倉庫配置及命令詳解
- postgresql的yum安裝及配置方法SQL
- Centos核心安裝 ----yum使用及配置CentOS