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源
- CentOS 配置yum源CentOS
- Centos-Stream 配置本地yum源和配置阿里雲yum源CentOS阿里
- linux 配置yum 源Linux
- 網路配置yum源
- Centos系統配置yum源CentOS
- linux yum源配置方法Linux
- Linux 本地yum源配置Linux
- CentOS6.9配置yum源CentOS
- centos7.5配置yum源CentOS
- CentOS配置Nginx官方的Yum源及yum安裝phpCentOSNginxPHP
- yum本地源及網路源配置
- This system is not registered with RHN 解決方案(附表:配置yum)
- 【YUM】Redhat5和6YUM源配置的區別Redhat
- redhat 5.5 配置網路yum源Redhat
- RedHat8 配置本地yum源Redhat
- CentOS 6 網路yum源配置CentOS
- Linux 網路yum源配置Linux
- Linux下配置本地yum源Linux
- yum問題解決
- 解決Centos無法yum源的問題CentOS
- Centos7配置阿里epel源|yum源CentOS阿里
- CentOS 搭建內部Yum源同步阿里Yum源CentOS阿里
- Linux系統配置本地yum源Linux
- linux配置本地ISO的yum源Linux
- ▲▲▲▲▲▲▲▲▲▲▲yum源的配置(本地和ftp)▲▲▲▲▲▲▲▲▲▲▲▲▲vFTP
- redhat6.6配置光碟為yum源Redhat
- CentOS 7 配置 阿里雲 yum源CentOS阿里
- 解決RHEL5.0中YUM的配置檔案
- linux配置本地yum安裝--FTP yumLinuxFTP
- 本地yum源搭建
- 本地搭建yum源
- CentOS修改yum源CentOS
- CentOS8配置阿里雲YUM源CentOS阿里
- [Linux7] HA Package Yum源配置LinuxPackage
- redhat6.5 配置使用centos的yum源RedhatCentOS