“Yum 安装 epel-release”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) (建立内容为“yum 安装 epel-release”的新页面) |
Jihongchang(讨论 | 贡献) |
||
| 第1行: | 第1行: | ||
| − | yum | + | EPEL(Extra Packages for Enterprise Linux)是基于 Fedora 的一个项目,为“红帽系”的操作系统提供额外的软件包,适用于 RHEL、CentOS 和 Scientific Linux. |
| + | |||
| + | 在 CentOS 下使用 yum 在安装包的时后往往会发生找不到 rpm 的情况,官方的 rpm repository 提供的 rpm 包也不够丰富,很多时候需要自己编译很痛苦,而 EPEL 恰恰可以解决这两方面的问题。 | ||
| + | |||
| + | EPEL 的全称叫 Extra Packages for Enterprise Linux 。 | ||
| + | |||
| + | EPEL是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。 | ||
| + | |||
| + | 装上了 EPEL之后,就相当于添加了一个第三方源。<syntaxhighlight lang="shell-session"> | ||
| + | [root@bogon docker_zk]# yum list installed|grep epel-release | ||
| + | [root@bogon docker_zk]# yum list |grep epel-release | ||
| + | epel-release.noarch 7-11 extras | ||
| + | [root@bogon docker_zk]# yum repolist | ||
| + | Loaded plugins: fastestmirror | ||
| + | Loading mirror speeds from cached hostfile | ||
| + | * base: mirrors.bfsu.edu.cn | ||
| + | * extras: mirrors.huaweicloud.com | ||
| + | * updates: mirrors.bfsu.edu.cn | ||
| + | repo id repo name status | ||
| + | base/7/x86_64 CentOS-7 - Base 10,072 | ||
| + | docker-ce-stable/7/x86_64 Docker CE Stable - x86_64 164 | ||
| + | extras/7/x86_64 CentOS-7 - Extras 512 | ||
| + | mysql-connectors-community/x86_64 MySQL Connectors Community 199 | ||
| + | mysql-tools-community/x86_64 MySQL Tools Community 92 | ||
| + | mysql56-community/x86_64 MySQL 5.6 Community Server 581 | ||
| + | updates/7/x86_64 CentOS-7 - Updates 4,135 | ||
| + | repolist: 15,755 | ||
| + | [root@bogon docker_zk]# yum -y install epel-release | ||
| + | Loaded plugins: fastestmirror | ||
| + | Loading mirror speeds from cached hostfile | ||
| + | * base: mirrors.bfsu.edu.cn | ||
| + | * extras: mirrors.huaweicloud.com | ||
| + | * updates: mirrors.bfsu.edu.cn | ||
| + | Resolving Dependencies | ||
| + | --> Running transaction check | ||
| + | ---> Package epel-release.noarch 0:7-11 will be installed | ||
| + | --> Finished Dependency Resolution | ||
| + | |||
| + | Dependencies Resolved | ||
| + | |||
| + | ============================================================================================================================================================================================================================================ | ||
| + | Package Arch Version Repository Size | ||
| + | ============================================================================================================================================================================================================================================ | ||
| + | Installing: | ||
| + | epel-release noarch 7-11 extras 15 k | ||
| + | |||
| + | Transaction Summary | ||
| + | ============================================================================================================================================================================================================================================ | ||
| + | Install 1 Package | ||
| + | |||
| + | Total download size: 15 k | ||
| + | Installed size: 24 k | ||
| + | Downloading packages: | ||
| + | epel-release-7-11.noarch.rpm | 15 kB 00:00:00 | ||
| + | Running transaction check | ||
| + | Running transaction test | ||
| + | Transaction test succeeded | ||
| + | Running transaction | ||
| + | Installing : epel-release-7-11.noarch 1/1 | ||
| + | Verifying : epel-release-7-11.noarch 1/1 | ||
| + | |||
| + | Installed: | ||
| + | epel-release.noarch 0:7-11 | ||
| + | |||
| + | Complete! | ||
| + | [root@bogon docker_zk]# yum list installed|grep epel-release | ||
| + | epel-release.noarch 7-11 @extras | ||
| + | [root@bogon docker_zk]# yum repolist | ||
| + | Loaded plugins: fastestmirror | ||
| + | Loading mirror speeds from cached hostfile | ||
| + | epel/x86_64/metalink | 6.5 kB 00:00:00 | ||
| + | * base: mirrors.bfsu.edu.cn | ||
| + | * epel: mirrors.bfsu.edu.cn | ||
| + | * extras: mirrors.huaweicloud.com | ||
| + | * updates: mirrors.bfsu.edu.cn | ||
| + | epel | 4.7 kB 00:00:00 | ||
| + | (1/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00 | ||
| + | (2/3): epel/x86_64/group_gz | 97 kB 00:00:00 | ||
| + | (3/3): epel/x86_64/primary_db | 7.0 MB 00:00:00 | ||
| + | repo id repo name status | ||
| + | base/7/x86_64 CentOS-7 - Base 10,072 | ||
| + | docker-ce-stable/7/x86_64 Docker CE Stable - x86_64 164 | ||
| + | epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,758 | ||
| + | extras/7/x86_64 CentOS-7 - Extras 512 | ||
| + | mysql-connectors-community/x86_64 MySQL Connectors Community 199 | ||
| + | mysql-tools-community/x86_64 MySQL Tools Community 92 | ||
| + | mysql56-community/x86_64 MySQL 5.6 Community Server 581 | ||
| + | updates/7/x86_64 CentOS-7 - Updates 4,135 | ||
| + | repolist: 29,513 | ||
| + | [root@bogon docker_zk]# | ||
| + | |||
| + | </syntaxhighlight> | ||
2022年8月15日 (一) 22:07的最新版本
EPEL(Extra Packages for Enterprise Linux)是基于 Fedora 的一个项目,为“红帽系”的操作系统提供额外的软件包,适用于 RHEL、CentOS 和 Scientific Linux.
在 CentOS 下使用 yum 在安装包的时后往往会发生找不到 rpm 的情况,官方的 rpm repository 提供的 rpm 包也不够丰富,很多时候需要自己编译很痛苦,而 EPEL 恰恰可以解决这两方面的问题。
EPEL 的全称叫 Extra Packages for Enterprise Linux 。
EPEL是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。
装上了 EPEL之后,就相当于添加了一个第三方源。
[root@bogon docker_zk]# yum list installed|grep epel-release
[root@bogon docker_zk]# yum list |grep epel-release
epel-release.noarch 7-11 extras
[root@bogon docker_zk]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.huaweicloud.com
* updates: mirrors.bfsu.edu.cn
repo id repo name status
base/7/x86_64 CentOS-7 - Base 10,072
docker-ce-stable/7/x86_64 Docker CE Stable - x86_64 164
extras/7/x86_64 CentOS-7 - Extras 512
mysql-connectors-community/x86_64 MySQL Connectors Community 199
mysql-tools-community/x86_64 MySQL Tools Community 92
mysql56-community/x86_64 MySQL 5.6 Community Server 581
updates/7/x86_64 CentOS-7 - Updates 4,135
repolist: 15,755
[root@bogon docker_zk]# yum -y install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.huaweicloud.com
* updates: mirrors.bfsu.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================================================
Installing:
epel-release noarch 7-11 extras 15 k
Transaction Summary
============================================================================================================================================================================================================================================
Install 1 Package
Total download size: 15 k
Installed size: 24 k
Downloading packages:
epel-release-7-11.noarch.rpm | 15 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1
Installed:
epel-release.noarch 0:7-11
Complete!
[root@bogon docker_zk]# yum list installed|grep epel-release
epel-release.noarch 7-11 @extras
[root@bogon docker_zk]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 6.5 kB 00:00:00
* base: mirrors.bfsu.edu.cn
* epel: mirrors.bfsu.edu.cn
* extras: mirrors.huaweicloud.com
* updates: mirrors.bfsu.edu.cn
epel | 4.7 kB 00:00:00
(1/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(2/3): epel/x86_64/group_gz | 97 kB 00:00:00
(3/3): epel/x86_64/primary_db | 7.0 MB 00:00:00
repo id repo name status
base/7/x86_64 CentOS-7 - Base 10,072
docker-ce-stable/7/x86_64 Docker CE Stable - x86_64 164
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,758
extras/7/x86_64 CentOS-7 - Extras 512
mysql-connectors-community/x86_64 MySQL Connectors Community 199
mysql-tools-community/x86_64 MySQL Tools Community 92
mysql56-community/x86_64 MySQL 5.6 Community Server 581
updates/7/x86_64 CentOS-7 - Updates 4,135
repolist: 29,513
[root@bogon docker_zk]#