yum repolistコマンドで一発でわかる。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
#リポジトリ全表示 [root@localhost ~]# yum repolist all 読み込んだプラグイン:fastestmirror, langpacks Loading mirror speeds from cached hostfile * atomic: atomic.melbourneitmirror.net * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: centos.usonyx.net リポジトリー ID リポジトリー名 状態 C7.0.1406-base/x86_64 CentOS-7.0.1406 - Base 無効 C7.0.1406-centosplus/x86_64 CentOS-7.0.1406 - CentOSPlus 無効 C7.0.1406-extras/x86_64 CentOS-7.0.1406 - Extras 無効 C7.0.1406-fasttrack/x86_64 CentOS-7.0.1406 - CentOSPlus 無効 C7.0.1406-updates/x86_64 CentOS-7.0.1406 - Updates 無効 C7.1.1503-base/x86_64 CentOS-7.1.1503 - Base 無効 C7.1.1503-centosplus/x86_64 CentOS-7.1.1503 - CentOSPlus 無効 C7.1.1503-extras/x86_64 CentOS-7.1.1503 - Extras 無効 C7.1.1503-fasttrack/x86_64 CentOS-7.1.1503 - CentOSPlus 無効 C7.1.1503-updates/x86_64 CentOS-7.1.1503 - Updates 無効 C7.2.1511-base/x86_64 CentOS-7.2.1511 - Base 無効 C7.2.1511-centosplus/x86_64 CentOS-7.2.1511 - CentOSPlus 無効 C7.2.1511-extras/x86_64 CentOS-7.2.1511 - Extras 無効 C7.2.1511-fasttrack/x86_64 CentOS-7.2.1511 - CentOSPlus 無効 C7.2.1511-updates/x86_64 CentOS-7.2.1511 - Updates 無効 C7.3.1611-base/x86_64 CentOS-7.3.1611 - Base 無効 C7.3.1611-centosplus/x86_64 CentOS-7.3.1611 - CentOSPlus 無効 C7.3.1611-extras/x86_64 CentOS-7.3.1611 - Extras 無効 C7.3.1611-fasttrack/x86_64 CentOS-7.3.1611 - CentOSPlus 無効 C7.3.1611-updates/x86_64 CentOS-7.3.1611 - Updates 無効 !atomic/7/x86_64 CentOS / Red Hat Enterprise Linux 7 - atomic 有効: 747 atomic-testing/7/x86_64 CentOS / Red Hat Enterprise Linux 7 - atomic - (Testing) 無効 !base/7/x86_64 CentOS-7 - Base 有効: 9,591 base-debuginfo/x86_64 CentOS-7 - Debuginfo 無効 base-source/7 CentOS-7 - Base Sources 無効 c7-media CentOS-7 - Media 無効 centosplus/7/x86_64 CentOS-7 - Plus 無効 centosplus-source/7 CentOS-7 - Plus Sources 無効 cr/7/x86_64 CentOS-7 - cr 無効 !extras/7/x86_64 CentOS-7 - Extras 有効: 282 extras-source/7 CentOS-7 - Extras Sources 無効 fasttrack/7/x86_64 CentOS-7 - fasttrack 無効 !updates/7/x86_64 CentOS-7 - Updates 有効: 1,086 updates-source/7 CentOS-7 - Updates Sources 無効 repolist: 11,706 #有効化されているリポジトリのみ [root@localhost ~]# yum repolist enabled 読み込んだプラグイン:fastestmirror, langpacks Loading mirror speeds from cached hostfile * atomic: atomic.melbourneitmirror.net * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: centos.usonyx.net リポジトリー ID リポジトリー名 状態 !atomic/7/x86_64 CentOS / Red Hat Enterprise Linux 7 - atomic 747 !base/7/x86_64 CentOS-7 - Base 9,591 !extras/7/x86_64 CentOS-7 - Extras 282 !updates/7/x86_64 CentOS-7 - Updates 1,086 repolist: 11,706 #無効化されているリポジトリのみ [root@localhost ~]# yum repolist disabled 読み込んだプラグイン:fastestmirror, langpacks リポジトリー ID リポジトリー名 C7.0.1406-base/x86_64 CentOS-7.0.1406 - Base C7.0.1406-centosplus/x86_64 CentOS-7.0.1406 - CentOSPlus C7.0.1406-extras/x86_64 CentOS-7.0.1406 - Extras C7.0.1406-fasttrack/x86_64 CentOS-7.0.1406 - CentOSPlus C7.0.1406-updates/x86_64 CentOS-7.0.1406 - Updates C7.1.1503-base/x86_64 CentOS-7.1.1503 - Base C7.1.1503-centosplus/x86_64 CentOS-7.1.1503 - CentOSPlus C7.1.1503-extras/x86_64 CentOS-7.1.1503 - Extras C7.1.1503-fasttrack/x86_64 CentOS-7.1.1503 - CentOSPlus C7.1.1503-updates/x86_64 CentOS-7.1.1503 - Updates C7.2.1511-base/x86_64 CentOS-7.2.1511 - Base C7.2.1511-centosplus/x86_64 CentOS-7.2.1511 - CentOSPlus C7.2.1511-extras/x86_64 CentOS-7.2.1511 - Extras C7.2.1511-fasttrack/x86_64 CentOS-7.2.1511 - CentOSPlus C7.2.1511-updates/x86_64 CentOS-7.2.1511 - Updates C7.3.1611-base/x86_64 CentOS-7.3.1611 - Base C7.3.1611-centosplus/x86_64 CentOS-7.3.1611 - CentOSPlus C7.3.1611-extras/x86_64 CentOS-7.3.1611 - Extras C7.3.1611-fasttrack/x86_64 CentOS-7.3.1611 - CentOSPlus C7.3.1611-updates/x86_64 CentOS-7.3.1611 - Updates atomic-testing/7/x86_64 CentOS / Red Hat Enterprise Linux 7 - atomic - (Testing) base-debuginfo/x86_64 CentOS-7 - Debuginfo base-source/7 CentOS-7 - Base Sources c7-media CentOS-7 - Media centosplus/7/x86_64 CentOS-7 - Plus centosplus-source/7 CentOS-7 - Plus Sources cr/7/x86_64 CentOS-7 - cr extras-source/7 CentOS-7 - Extras Sources fasttrack/7/x86_64 CentOS-7 - fasttrack updates-source/7 CentOS-7 - Updates Sources repolist: 0 #特定リポジトリの詳細 [root@localhost ~]# yum repolist base -v プラグイン「fastestmirror」を読み込んでいます プラグイン「langpacks」を読み込んでいます Adding ja_JP.UTF-8 to language list Config time: 0.021 Yum version: 3.4.3 Loading mirror speeds from cached hostfile * atomic: atomic.melbourneitmirror.net * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: centos.usonyx.net Setting up Package Sacks pkgsack time: 0.009 リポジトリー ID : base/7/x86_64 リポジトリーの名前 : CentOS-7 - Base リポジトリーの状態 : 有効 リポジトリーのリビジョン : 1504648209 リポジトリー更新日 : Wed Sep 6 06:51:13 2017 リポジトリー内パッケージ数 : 9,591 リポジトリー容量 : 7.6 G リポジトリーのミラー : http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock リポジトリー基準 URL : http://ftp.iij.ad.jp/pub/linux/centos/7.4.1708/os/x86_64/ (9 more) リポジトリーの期限 : 21,600 秒 (最終: Mon Nov 20 09:40:03 2017) Filter : read-only:present Repo ファイル名: /etc/yum.repos.d/CentOS-Base.repo repolist: 9,591 |
/etc/yum.repos.d/*.repoの中身を見ても確認できる。
enabled=0→無効、enabled=1または未定義→有効、って感じっぽい。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
[root@localhost ~]# cat /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.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-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 |