In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to install yum source in CentOS 7 system? I believe that many inexperienced people are helpless about this. For this reason, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
1. Check the system version
The version of Yum must match the version of CentOS to install successfully. Therefore, to install yum, you must first determine the CentOS version before you know which version of yum to download and install. The following commands can be used:
cat /etc/redhat-release
The effects are as follows:
Check if yum is installed.
If yum is already installed on the server, there is no need to re-install it. This can be checked with the yum command. The method is to enter yum directly, enter, if yum is already installed, a list of yum will appear. The following is the result of installing yum:
If yum is not installed, the system will not be able to recognize yum commands, and if you cannot output the above results, you need to install yum.
Third, after doing a good job of inspection, you can start installing yum
1. Download the rpm installation package that supports yum
First create the path yum-install under usr to store and install yum.
Command: cd /usr
mkdir yum-install
Installation package download address: mirrors.163.com/centos/7/os/x86_64/Packages/
The installation files required for the installation process include the following four:
python-iniparse-0.4-9.el7.noarch.rpmyum-metadata-parser-1.1.4-10.el7.x86_64.rpmyum-3.4.3-158.el7.centos.noarch.rpmyum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
You can download the installer directly to yum-install using the wget command.
An example of how to download an installation package directly from a mirror using the wget command is as follows:
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
Effect after execution:
The other three installers are downloaded in this way.
2. Next, install these packages.
Instructions:
rpm -ivh --force --nodeps python-iniparse-0.4-9.el7.noarch.rpm
Execution effect:
Just install them one by one.
4. Download and install yum
You can download the yum installation package to the current path by following the instructions below.
wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz
So you can enjoy using yum!
5. After Yum is successfully installed, you can install rz and sz to upload and download files
Instructions:
yum install -y lrzsz
Implementation results:
Upload files to server using rz command.
To upload files from the local computer to the server, enter rz command Enter in Linux terminal, select the file path stored locally to upload files to the server.
Download files using the sz command.
To download files from the server to the local computer, enter the sz command in the Linux terminal and select the local storage path to download the files to the local computer.
After reading the above, do you know how to install yum source in CentOS 7 system? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
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.