麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 學院 > 操作系統 > 正文

第三方yum源安裝后,之后用于安裝的是哪個yum源

2024-06-28 16:03:20
字體:
來源:轉載
供稿:網友

第三方yum源創建后,想不通的一個過程是,原來的yum源還能在使用嗎?于是想了個方法測試了一下。

1.我的系統版本:

[root@localhost ~]# cat /etc/redhat-release CentOS release 6.8 (Final)

2.查看yum源的當前狀態:

[root@localhost ~]# yum list > test      #我不知道還有什么方法可以看到yum源路徑,只能先用笨方法。[root@localhost ~]# vim testLoaded plugins: fastestmirror, refresh-packagekit, securityInstalled PackagesConsoleKit.x86_64                          0.4.1-6.el6                   @anaconda-CentOS-201605220104.x86_64/6.8ConsoleKit-libs.x86_64                     0.4.1-6.el6                   @anaconda-CentOS-201605220104.x86_64/6.8

3.查看默認yum的配置:

[root@localhost yum.repos.d]# ll total 24-rw-r--r--. 1 root root 1991 May 18  2016 CentOS-Base.repo-rw-r--r--. 1 root root  647 May 18  2016 CentOS-Debuginfo.repo-rw-r--r--. 1 root root  289 May 18  2016 CentOS-fasttrack.repo-rw-r--r--. 1 root root  630 May 18  2016 CentOS-Media.repo-rw-r--r--. 1 root root 6259 May 18  2016 CentOS-Vault.repo

#以下證明CentOS-Base.repo是在使用的yum源,其他就不詳細[root@localhost yum.repos.d]# vim CentOS-Base.repo[base]name=CentOS-$releasever - Basemirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6[root@localhost yum.repos.d]# vim CentOS-fasttrack.repo[fasttrack]name=CentOS-6 - fasttrackmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=fasttrack&infra=$infra#baseurl=http://mirror.centos.org/centos/$releasever/fasttrack/$basearch/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6                                         

4.準備安裝第三方yum源:

[root@localhost yum.repos.d]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

5.查看變化:

[root@localhost yum.repos.d]# lltotal 28-rw-r--r--. 1 root root 1991 May 18  2016 CentOS-Base.repo-rw-r--r--. 1 root root  647 May 18  2016 CentOS-Debuginfo.repo-rw-r--r--. 1 root root  289 May 18  2016 CentOS-fasttrack.repo-rw-r--r--. 1 root root  630 May 18  2016 CentOS-Media.repo-rw-r--r--. 1 root root 6259 May 18  2016 CentOS-Vault.repo-rw-r--r--. 1 root root 1083 May 14  2015 epel.repo         #多了一個yum源[root@localhost yum.repos.d]# vim CentOS-Base.repo[base]name=CentOS-$releasever - Basemirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6[root@localhost yum.repos.d]# vim epel.repo[epel]name=Extra Packages for EnterPRise linux 6 - $basearchbaseurl=http://mirrors.aliyun.com/epel/6/$basearch        http://mirrors.aliyuncs.com/epel/6/$basearch#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearchfailovermethod=priorityenabled=1   #說明這個可以用gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6[root@localhost ~]# yum list > test1[root@localhost ~]# vim test1Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.comzeromq3-devel.i686                             3.2.5-1.el6                  epelzeromq3-devel.x86_64                        3.2.5-1.el6                  epelzfs-fuse.x86_64                          0.6.9-6.20100709git.el6      epelzikula.noarch                                       1.2.3-1.el6                  epelzile.x86_64                                          2.4.9-1.el6                  epelzipios++.i686                                      0.1.5.9-8.el6                epelzipios++.x86_64                                 0.1.5.9-8.el6                epelzipios++-devel.i686                            0.1.5.9-8.el6                epelzipios++-devel.x86_64                       0.1.5.9-8.el6                epel             #明顯的是[epel]zlib.i686                                             1.2.3-29.el6                 base            #明顯的是[base]zlib-devel.i686                                   1.2.3-29.el6                 basezlib-devel.x86_64                              1.2.3-29.el6                 basezlib-static.x86_64                              1.2.3-29.el6                 base

6.對比一下:使用vim + test/test1 與末行模式下 :set number

第三方yum,有19250行,默認yum,6854行test1中既有base源的包也有epel源的包請大家一起討論,希望一起學習,也求大神指教!
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 91午夜视频 | 国产精品视频导航 | 一本免费视频 | 看免费一级毛片 | 亚洲第一视频 | 激情小说激情图片激情电影 | 在线日韩av电影 | 欧美一级黄视频 | av在线直播观看 | 毛片哪里看 | 在线中文资源免费 | 久草在线视频福利 | 亚洲欧美天堂 | 久久亚洲精品11p | 免费1级做55爰片l在线观看 | 欧美大胆xxxx肉体摄影 | 999久久久| 成人av一二三区 | 久久蜜臀一区二区三区av | 在线a| 圆产精品久久久久久久久久久 | 9999久久久久久 | 精品国产一区二区三区成人影院 | av电影手机在线看 | 免费的性爱视频 | 激情亚洲一区二区三区 | 免费视频一区 | 国产精品久久久久一区二区 | 蜜桃一本色道久久综合亚洲精品冫 | 免费观看视频在线 | 亚洲一区二区三区四区精品 | 久久久精品综合 | 国产一级淫片a级aaa | 亚洲生活片 | 欧美一级电影网 | chinese乱子伦xxxx国语对白 | 国产精品视频1区 | 毛毛片在线看 | 亚洲视屏 | 男男啪羞羞视频网站 | 国产在线区 |