Tools under linux---yum

1. What is yum

yum is a software package manager under Linux

2.What is a software package manager

1. When installing software under Linux, a common method is to download the source code of the program and compile it to obtain an executable program.
2. But this is too troublesome. , so some people compile some commonly used software in advance and make it into a software package (which can be understood as an installation program on Windows) and put it on a server. This compiled software package can be easily obtained through the package manager. Install directly.
3. Software packages and software package managers are like the relationship between "App" and "App Store".
4 , yum (Yellow dog Updater, Modified) is a very commonly used package manager under Linux. Mainly used in Fedora, RedHat, Centos and other distributions on
 

3. Install rzsz under Linux 

rzsz is used to transfer files between Windows machines and remote Linux machines through XShell. After installation, the files can be uploaded by dragging and dropping
Commands passed to Linux: rz
Command passed to windows: sz file name

Precautions:

All operations on yum must ensure that the host (virtual machine) network is open!!!
This can be verified by the ping command
ping www.baidu. com

4. View the software package

Use theyum list command to list the current software packages. Since the number of packages may be very large, here we need Use the grep command to filter out only the packages we care about. For example:

yum list | grep lrzsz

The result is as follows:

Precautions:

1. Software package name: major version number. Minor version number. Source program release number - software package release number. Host platform. cpu architecture.
2. "x86_64" ; The suffix indicates the installation package for 64-bit systems, and the "i686" suffix indicates the installation package for 32-bit systems. When selecting the package, it must match the system.
3. "el7" indicates the operating system release version version. "el7" represents centos7/redhat7. "el6" represents centos6/redhat6.
4. In the last column, base represents the name of "software source", Concepts similar to "Xiaomi App Store" and "Huawei App Store"
 

5. How to install the software

Through yum, we can complete the installation of gcc with a very simple command

sudo yum install lrzsz
yum will automatically find which software packages need to be downloaded. At this time, type "y" to confirm the installation.
appears The words "complete" indicate that the installation is complete

Precautions:

1. Since you need to write content to the system directory when installing software, you generally need to sudo or switch to the root account to complete.
2. The yum installation software can only be installed in one installation After that, install another one. During the process of installing a software with yum, if you try to install another software with yum, yum will report an error.
3. If yum reports an error, please Baidu yourself

6. Uninstall the software

Only one command is needed:

sudo yum remove lrzsz
Completed! The prompt means that it was successfully removed

 

Guess you like

Origin blog.csdn.net/m0_69323023/article/details/134648029