Centos8.x yum 源配置 解決 yum 不可用
[root@iZ2ze1e3u7m7oe426pyndaa ~]# cd /etc/yum.repos.d/ [root@iZ2ze1e3u7m7oe426pyndaa yum.repos.d]# ll total 48 -rw-r--r-- 1 root root 635 Nov 20 2020 CentOS-AppStream.repo -rw-r--r-- 1 root root 619 Nov 20 2020 CentOS-Base.repo -rw-r--r-- 1 root root 701 Nov 20 2020 CentOS-centosplus.repo -rw-r--r-- 1 root root 1329 Nov 20 2020 CentOS-CR.repo -rw-r--r-- 1 root root 668 Nov 20 2020 CentOS-Debuginfo.repo -rw-r--r-- 1 root root 227 Nov 20 2020 CentOS-epel.repo -rw-r--r-- 1 root root 663 Nov 20 2020 CentOS-Extras.repo -rw-r--r-- 1 root root 242 Nov 20 2020 CentOS-fasttrack.repo -rw-r--r-- 1 root root 928 Nov 20 2020 CentOS-Media.repo -rw-r--r-- 1 root root 639 Nov 20 2020 CentOS-PowerTools.repo -rw-r--r-- 1 root root 1382 Nov 20 2020 CentOS-Sources.repo -rw-r--r-- 1 root root 74 Nov 20 2020 CentOS-Vault.repo [[root@iZ2ze1e3u7m7oe426pyndaa yum.repos.d]# mkdir /home/ydt/yum.repos.d.ori [root@iZ2ze1e3u7m7oe426pyndaa yum.repos.d]# cp * /home/ydt/yum.repos.d.ori/ [root@iZ2ze1e3u7m7oe426pyndaa yum.repos.d]# ll /home/ydt/yum.repos.d.ori/ total 48 -rw-r--r-- 1 root root 635 Feb 15 14:03 CentOS-AppStream.repo -rw-r--r-- 1 root root 619 Feb 15 14:03 CentOS-Base.repo -rw-r--r-- 1 root root 701 Feb 15 14:03 CentOS-centosplus.repo -rw-r--r-- 1 root root 1329 Feb 15 14:03 CentOS-CR.repo -rw-r--r-- 1 root root 668 Feb 15 14:03 CentOS-Debuginfo.repo -rw-r--r-- 1 root root 227 Feb 15 14:03 CentOS-epel.repo -rw-r--r-- 1 root root 663 Feb 15 14:03 CentOS-Extras.repo -rw-r--r-- 1 root root 242 Feb 15 14:03 CentOS-fasttrack.repo -rw-r--r-- 1 root root 928 Feb 15 14:03 CentOS-Media.repo -rw-r--r-- 1 root root 639 Feb 15 14:03 CentOS-PowerTools.repo -rw-r--r-- 1 root root 1382 Feb 15 14:03 CentOS-Sources.repo -rw-r--r-- 1 root root 74 Feb 15 14:03 CentOS-Vault.repo
[root@iZ2ze1e3u7m7oe426pyndaa yum.repos.d]# rm -rf *
[root@iZ2ze1e3u7m7oe426pyndaa yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo --2022-02-15 14:04:11-- Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 39.96.118.189, 39.96.118.196, 39.96.118.148, ... Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|39.96.118.189|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2495 (2.4K) [application/octet-stream] Saving to: ‘/etc/yum.repos.d/CentOS-Base.repo’ /etc/yum.repos.d/CentOS-Base.repo 100%[================================================================================================================>] 2.44K --.-KB/s in 0s 2022-02-15 14:04:11 (63.2 MB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo’ saved [2495/2495]
[root@iZ2ze1e3u7m7oe426pyndaa yum.repos.d]# yum makecache CentOS-8.5.2111 - Base - mirrors.aliyun.com 25 MB/s | 4.6 MB 00:00 CentOS-8.5.2111 - Extras - mirrors.aliyun.com 296 kB/s | 10 kB 00:00 CentOS-8.5.2111 - AppStream - mirrors.aliyun.com 46 MB/s | 8.4 MB 00:00 Metadata cache created. [root@iZ2ze1e3u7m7oe426pyndaa yum.repos.d]# ll total 4 -rw-r--r-- 1 root root 2495 Feb 14 21:16 CentOS-Base.repo
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70003733/viewspace-2908210/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 小知識:CentOS配置yum源/解決yum源失效問題CentOS
- Linux yum源配置以及yum命令講解Linux
- 配置yum源
- yum 配置源
- yum源配置大全
- CentOS 配置yum源CentOS
- Centos-Stream 配置本地yum源和配置阿里雲yum源CentOS阿里
- centos7.5配置yum源CentOS
- CentOS6.9配置yum源CentOS
- oel 7 本地yum源配置
- Centos 7 常用yum源配置CentOS
- Centos系統配置yum源CentOS
- RHEL7 yum源配置
- CentOS7--配置yum源CentOS
- CentOS6.8配置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源的問題CentOS
- Centos7配置阿里epel源|yum源CentOS阿里
- CentOS 搭建內部Yum源同步阿里Yum源CentOS阿里
- CentOS7配置yum國內源CentOS
- CentOS8配置阿里雲YUM源CentOS阿里
- 新增yum源
- yum本地源和外網源的配置方法
- Centos-7修改yum源為國內的yum源CentOS
- Vmware配置Centos7配置yum源(新手小白福音)CentOS
- CentOS修改yum源CentOS
- linux yum 源部署Linux
- 本地yum源搭建
- Redhat(02):yum 配置Redhat
- 詳解 RHEL7.1 yum源配置與軟體安裝
- centos同步yum源到本地,建立本地網路yum源CentOS