In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to understand the repo file in RedHat Enterprise Linux. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Yum (Yellow dog Updater, Modified) is a Shell front-end package manager in Fedora and RedHat as well as in CentOS. Based on RPM package management, RPM packages can be downloaded and installed automatically from designated servers, dependencies can be automatically dealt with, and all dependent software packages can be installed at one time without tedious downloading and installation.
Use yum help to view all supported commands:
First look at the contents of / etc/yum.conf:
The role of each line in this configuration file is described line by line below.
Cachedir=/var/cache/yum/releasever
Specify the directory of the yum cache where yum stores downloaded rpm packages and databases.
The contents of this folder on my server are as follows:
Keepcache=0: sets keepcache=1,yum to retain cached header files (headers) and packages after successful package installation. The default value is keepcache=0 do not save
Debuglevel=2: debug level, 2 means to record only installation and deletion records
Logfile=/var/log/yum.log
Gpgcheck=1: there are two choices of 1 and 0, which represent whether or not to perform a gpg check. if not, the default is to check. What is a GPG check? GPG is a free tool for encryption and digital signature, which is mostly used for the transmission of encrypted information. In addition to password-only encryption, the biggest difference of GPG is that it provides a "public key / private key" pair. Using the "public key" of one party to encrypt information by others no longer need to tell the password, and encrypted information can be sent anytime and anywhere. This kind of encryption is one-way, and only one party's "private key" can unlock the encryption. Digital signature is another major direction of use. With signature authentication, others can ensure that the published message comes from one party and has not been modified.
Enter the directory yum.repos.d and find a lot of .repo files:
Open one at random:
[virtualbox]
Name=Oracle Linux / RHEL / CentOS-
Basearch-VirtualBox
Baseurl= http://download.virtualbox.org/virtualbox/rpm/el/
Basearch
Enabled=1
Gpgcheck=1
Repo_gpgcheck=1
Gpgkey= https://www.virtualbox.org/download/oracle_vbox.asc
Name:
Is a description of repository and supports variables like basearch
Baseurl= http://download.virtualbox.org/virtualbox/rpm/el/
Basearch
Baseurl is the most important part of the server setup, pointing to the address of the software installation package corresponding to this repo file.
With the definition of these repo files, execute yum install followed by the name of the package, and you can automatically download and install the installation package from baseurl.
On how to understand the repo file in RedHat Enterprise Linux to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.