国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

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

第三方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源的包請大家一起討論,希望一起學習,也求大神指教!
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 白银市| 柯坪县| 防城港市| 开江县| 江陵县| 商洛市| 玉林市| 富宁县| 遂溪县| 临潭县| 松原市| 红桥区| 云梦县| 山西省| 惠安县| 老河口市| 定州市| 克什克腾旗| 长春市| 五大连池市| 吉木萨尔县| 陇西县| 霍城县| 平遥县| 兰西县| 泉州市| 白水县| 封丘县| 舟曲县| 杂多县| 施甸县| 中超| 连城县| 年辖:市辖区| 布尔津县| 盐城市| 南江县| 灵武市| 石首市| 克山县| 冷水江市|