redhat 5.5 配置網路yum源
redhat 5.5 配置網路yum源
以下為配置檔案/etc/yum.repos.d/rhel-media.repo
# The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-5 - Base #mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/5/os/$basearch/ baseurl=http://vault.centos.org/5.11/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #released updates [updates] name=CentOS-5 - Updates #mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/5/updates/$basearch/ baseurl=http://vault.centos.org/5.11/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful [extras] name=CentOS-5 - Extras #mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/5/extras/$basearch/ baseurl=http://vault.centos.org/5.11/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-5 - Plus #mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/5/centosplus/$basearch/ baseurl=http://vault.centos.org/5.11/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #contrib - packages by Centos Users [contrib] name=CentOS-5 - Contrib #mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=contrib #baseurl=http://mirror.centos.org/centos/5/contrib/$basearch/ baseurl=http://vault.centos.org/5.11/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5</span></strong></span>
更新yum源:
yum clean all
yum makecache
若makecache報錯,匯入新的GPG-KEY再執行一次即可搞定
rpm --import http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
About Me
........................................................................................................................ ● 本文作者:小麥苗,部分內容整理自網路,若有侵權請聯絡小麥苗刪除 ● 本文在itpub、部落格園、CSDN和個人微 信公眾號( xiaomaimiaolhr)上有同步更新 ● 本文itpub地址: http://blog.itpub.net/26736162 ● 本文部落格園地址: http://www.cnblogs.com/lhrbest ● 本文CSDN地址: https://blog.csdn.net/lihuarongaini ● 本文pdf版、個人簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/ ● 資料庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/ ● DBA寶典今日頭條號地址: http://www.toutiao.com/c/user/6401772890/#mid=1564638659405826 ........................................................................................................................ ● QQ群號: 230161599 、618766405 ● 微 信群:可加我微 信,我拉大家進群,非誠勿擾 ● 聯絡我請加QQ好友 ( 646634621 ),註明新增緣由 ● 於 2019-08-01 06:00 ~ 2019-08-31 24:00 在西安完成 ● 最新修改時間:2019-08-01 06:00 ~ 2019-08-31 24:00 ● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解 ● 版權所有,歡迎分享本文,轉載請保留出處 ........................................................................................................................ ● 小麥苗的微店: https://weidian.com/s/793741433?wfr=c&ifr=shopdetail ● 小麥苗出版的資料庫類叢書: http://blog.itpub.net/26736162/viewspace-2142121/ ● 小麥苗OCP、OCM、高可用網路班: http://blog.itpub.net/26736162/viewspace-2148098/ ● 小麥苗騰訊課堂主頁: https://lhr.ke.qq.com/ ........................................................................................................................ 使用 微 信客戶端掃描下面的二維碼來關注小麥苗的微 信公眾號( xiaomaimiaolhr)及QQ群(DBA寶典)、新增小麥苗微 信, 學習最實用的資料庫技術。
........................................................................................................................ |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2655453/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RedHat8 配置本地yum源Redhat
- Redhat 7使用CentOS 7的Yum網路源RedhatCentOS
- Redhat(02):yum 配置Redhat
- Redhat8 yum源內網部署Redhat內網
- redhat 7 使用nmcli 命令配置網路Redhat
- yum 配置源
- 配置yum源
- centos同步yum源到本地,建立本地網路yum源CentOS
- Linux之RedHat7如何更換yum源LinuxRedhat
- yum本地源和外網源的配置方法
- CentOS 配置yum源CentOS
- yum源配置大全
- redhat6.7修改為centos6.7官方yum源RedhatCentOS
- Centos-Stream 配置本地yum源和配置阿里雲yum源CentOS阿里
- Linux yum源配置以及yum命令講解Linux
- CentOS6.9配置yum源CentOS
- oel 7 本地yum源配置
- Centos 7 常用yum源配置CentOS
- Centos系統配置yum源CentOS
- CentOS6.8配置yum源CentOS
- centos7.5配置yum源CentOS
- RHEL7 yum源配置
- CentOS7--配置yum源CentOS
- 小知識:CentOS配置yum源/解決yum源失效問題CentOS
- Centos7配置阿里epel源|yum源CentOS阿里
- centos7實現上網和管理網路yum源CentOS
- Linux系統配置本地yum源Linux
- centos-7.6配置本地yum源CentOS
- CentOS7 配置 163 yum 源CentOS
- CentOS 7 配置 阿里雲 yum源CentOS阿里
- 02_2__配置本地YUM源
- linux配置本地ISO的yum源Linux
- RHEL6搭建網路yum源軟體倉庫
- CentOS7配置yum國內源CentOS
- CentOS8配置阿里雲YUM源CentOS阿里
- Centos8.x yum 源配置 解決 yum 不可用CentOS
- Vmware配置Centos7配置yum源(新手小白福音)CentOS
- linux6 聯網yum 源Linux