How to install yum source and upload and download commands rz and sz under CentOS7 (with pictures)

How to install yum source and upload and download commands rz and sz under CentOS7 (with pictures)

**

Detailed graphic instructions for installing yum source and uploading and downloading commands rz and sz under CentOS7

** Here I will share with you the installation method of yum combined with the practical results, hoping that it will be helpful to friends who need to install yum. First, a brief introduction to yum.

yum (Yellow dog Updater, Modified) is a shell front-end package manager in Fedora, RedHat, and SUSE. Yum runs based on the support of rpm packages. It can automatically download rpm installation packages from the specified server and install them. It is very convenient, efficient and easy to use. Now yum is basically an essential component of Linux servers. The following will introduce in detail the installation method of yum source and upload and download commands rz and sz under CentOS7.

1. Check the system version

The version of Yum must match the version of CentOS for the installation to succeed. Therefore, when installing yum, you must first determine the CentOS version to know which version of yum to download and install. The following instructions can be used:

cat /etc/redhat-release

The effect is as follows:

insert image description here

2. Check if yum is already installed

If yum is already installed on the server, there is no need to install it again. You can use the yum command to check. The method is to directly enter yum and press Enter. If yum has been installed, the yum list will appear. The following is the result of installing yum:

insert image description here

If yum is not installed, the system will not be able to recognize the yum command and will not output the above results. In this case, you need to install yum.

3. After completing the inspection, you can start installing yum

1. Download the rpm installation package that supports yum operation

First, create a path yum-install under the usr path to store and install yum.

Command: cd /usr

mkdir yum-install

Installation package download address: http://mirrors.163.com/centos/7/os/x86_64/Packages/

The installation process requires the following four installation files:

python-iniparse-0.4-9.el7.noarch.rpm
yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
yum-3.4.3-158.el7.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm

You can use the wget command to directly download the installation package to the yum-install path.

The following is an example of how to use the wget command to download the installation package directly from the mirror site:

wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm

Effect after execution:

insert image description here

The other three installation packages are downloaded in the same way.

2. Next install these installation packages

instruction:

rpm -ivh --force --nodeps python-iniparse-0.4-9.el7.noarch.rpm

Implementation effect:

insert image description here

Just install them one by one.

4. Download and install yum

You can use the following command to download the yum installation package to the current path.

wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz 

insert image description here

Now you can use yum happily!

five. After Yum is successfully installed, you can install rz, sz to upload and download files

instruction:

yum install -y lrzsz

Execution Result:

insert image description here

Use the rz command to upload files to the server.

To upload files from your local computer to the server, enter the rz command in the Linux terminal and press Enter, then select the local storage file path to upload the file to the server.

To download files, use the sz command.

To download files from the server to the local computer, enter the sz command in the Linux terminal and press Enter, then select the local storage path to download the file to the local computer.

Summarize

The above is the installation method of yum source and upload and download commands rz and sz under CentOS7 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to configure domestic sources in CentOS8 yum/dnf
  • How to change the yum source in CentOS
  • How to uninstall the built-in yum in centos7 (redhat7) and install the domestic yum source
  • Detailed explanation of how to configure local yum source in centos7
  • Configure MySQL source and install MySQL using yum under CentOS 7
  • How to change the yum update source in CentOS

<<:  Detailed explanation and extension of ref and reactive in Vue3

>>:  Perfect solution to mysql cannot start after phpstudy is installed (no need to delete the original database, no need to change any configuration, no need to change the port) direct coexistence

Recommend

The marquee element implements effects such as scrolling fonts and pictures

The marquee element can achieve simple font (image...

Install Docker on CentOS 7

If you don't have a Linux system, please refe...

Control the light switch with js

Use js to control the light switch for your refer...

Introduction to using Unicode characters in web pages (&#,\u, etc.)

The earliest computers could only use ASCII chara...

Understanding MySQL Locking Based on Update SQL Statements

Preface MySQL database lock is an important means...

How to configure mysql on ubuntu server and implement remote connection

Server: Ubuntu Server 16.04 LSS Client: Ubuntu 16...

How to introduce img images into Vue pages

When we learn HTML, the image tag <img> int...

How to choose transaction isolation level in MySQL project

introduction Let's start with our content. I ...

How to upload projects to Code Cloud in Linux system

Create a new project test1 on Code Cloud Enter th...

Vue implements simple image switching effect

This article example shares the specific code of ...

Nginx builds rtmp live server implementation code

1. Create a new rtmp directory in the nginx sourc...

Implementation idea of ​​left alignment of the last row of flex box layout

Using flex layout, if it is a nine-square grid, i...