In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to enable EPEL warehouse on CentOS 8 and RHEL 8 servers". In daily operation, I believe many people have doubts about how to enable EPEL warehouse on CentOS 8 and RHEL 8 servers. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to enable EPEL warehouses on CentOS 8 and RHEL 8 servers". Next, please follow the editor to study!
Prerequisites for EPEL warehouse
Minimize installed CentOS 8 and RHEL 8 servers
Root or sudo administrator privileges
Network connection
Install and enable the EPEL repository on the RHEL 8.x server
Log in or SSH to your RHEL 8.x server and execute the following dnf command to install the EPEL rpm package
[root@linuxtechi ~] # dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm-y
The output of the above command will be as follows
Dnf-install-epel-repo-rehl8
After the EPEL rpm package is successfully installed, it automatically enables and configures its yum/dnf repository. Run the following dnf or yum command to verify that the EPEL warehouse is enabled
[root@linuxtechi ~] # dnf repolist epel or [root@linuxtechi ~] # dnf repolist epel-v
Epel-repolist-rhel8
Install and enable the EPEL repository on the CentOS 8.x server
Log in or SSH to your CentOS 8 server and execute the following dnf or yum command to install the epel-release rpm package. In the CentOS 8 server, EPEL rpm is in its default package repository.
[root@linuxtechi ~] # dnf install epel-release-y or [root@linuxtechi ~] # yum install epel-release-y
Execute the following command to verify the status of the EPEL repository on the CentOS 8 server
[root@linuxtechi] # dnf repolist epelLast metadata expiration check: 0:00:03 ago on Sun 13 Oct 2019 04:18:05 AM BST.repo id repo name status*epel Extra Packages for Enterprise Linux 8-x86 million 64 1977 [root@linuxtechi] # [root@linuxtechi] # dnf repolist epel-v... Repo-id: epelRepo-name: Extra Packages for Enterprise Linux 8-x86_64Repo-status: enabledRepo-revision: 1570844166Repo-updated: Sat 12 Oct 2019 02:36:32 AM BSTRepo-pkgs: 1977Repo-size: 2.1 GRepo-metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=stock&content=centos Updated: Sun 13 Oct 2019 04:28:24 AM BSTRepo-baseurl: rsync://repos.del.extreme-ix.org/epel / 8/Everything/x86_64/ (34 more) Repo-expire: 172800 second (s) (last: Sun 13 Oct 2019 04:28:24 AM BST) Repo-filename: / etc/yum.repos.d/epel.repoTotal packages: 1977 [root@linuxtechi] #
The output of the above command indicates that we have successfully enabled the EPEL repository. Let's perform some basic operations on the EPEL repository.
List all available packages for the EPEL warehouse
If you want to list all the packages in the EPEL repository, run the following dnf command
[root@linuxtechi] # dnf repository-packages epel list... Last metadata expiration check: 0:38:18 ago on Sun 13 Oct 2019 04:28:24 AM BST.Installed Packagesepel-release.noarch 8-6.el8 @ epelAvailable PackagesBackupPC.x86_64 4.3.1-2.el8 epelBackupPC-XS.x86_64 0.59-3.el8 epelCGSI-gSOAP.x86_64 1.3.11-7.el8 epelCGSI-gSOAP-devel.x86_64 1.3.11-7.el8 epelField3D.x86_64 1.7.2-16.el8 epelField3D-devel.x86_64 1.7.2-16.el8 epelGraphicsMagick.x86_64 1.3.33-1.el8 epelGraphicsMagick-c++.x86_64 1.3.33-1.el8 epel... Zabbix40-web-mysql.noarch 4.0.12-1.el8 epelzabbix40-web-pgsql.noarch 4.0.12-1.el8 epelzerofree.x86_64 1.1.1-3.el8 epelzimg.x86_64 2.8-4.el8 epelzimg-devel.x86 _ 64 2.8-4.el8 epelzstd.x86_64 1.4.2-1.el8 epelzvbi.x86_64 0.2.35-9.el8 epelzvbi-devel.x86_64 0.2.35-9.el8 Epelzvbi-fonts.noarch 0.2.35-9.el8 epel [root@linuxtechi ~] # search for software packages from EPEL repository
Suppose we want to search the Zabbix package in the EPEL repository, execute the following dnf command
[root@linuxtechi ~] # dnf repository-packages epel list | grep-I zabbix
The output of the above command looks like this
Epel-repo-search-package-centos8
Install the package from the EPEL repository
Suppose we want to install the htop package from the EPEL warehouse and run the following dnf command
Syntax:
# dnf-enablerepo= "epel" install [root@linuxtechi ~] # dnf-enablerepo= "epel" install htop-y
Note: if we do not specify-enablerepo=epel in the above command, it will look for the htop package in all available package repositories.
.
At this point, the study on "how to enable the EPEL repository on CentOS 8 and RHEL 8 servers" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.