What is a software package
To install software under Linux, a common way is to download the source code of the program and compile it to get an executable program.
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 can be easily obtained through the package manager. The compiled software package can be installed directly. Software packages and software package managers are like the relationship between “App” and “App Store”. yum (Yellow dog Updater, Modified) is a very commonly used package manager under Linux. It is mainly used in Fedora, RedHat, Centos and other distributions.
Quickly understand yum—a brief introduction
What is a package manager in Linux? In Linux, we need to install, check and uninstall tools, instructions and programs, etc.
So we need our corresponding yum software
Installation method
1. Source code installation—The Linux operating system itself is open source, so there are many open source software accompanying the Linux operating system
Source code installation, as the name implies, is to directly install its source code Download it, compile it directly in our environment to generate an executable program, and then install it into our system. This kind of work is generally called cross-compilation work
2. Install the rpm package directly< /span> Then the yum we have here is the corresponding application store in our Linux Our Microsoft also corresponds The application store is called Microsoft For example: When we usually download software on our mobile phones, we download it from the application market or app store This yum command can help us search for downloads and Install the corresponding software yum is actually a command in our system yum: yum is a command pre-installed in our Linux: Let’s discuss this installation method in detailyum / apt-get
3.
Quickly use yum——Assuming that our environment is the same
First of all, I recommend a small software called rzsz
This tool is used to transfer files between Windows machines and remote Linux machines through XShell.
Installation After completion, you can upload the file by dragging and dropping
Notes
All operations on yum must ensure that the host (virtual machine) network is smooth!!!< /span>
can be verified by ping command
ping www.baidu.com
What should we do if we need to upload files or other things on the Windows operating system to our Linux machine
Let’s teach you a command called rz
If you and I show the same, then we are correct
Just select the file you need to transfer
If you want to Put the files on our Linux machine back on our Windows machine and we can directly enter the sz command
root_ followed by the corresponding file name
View packages
The yum list command can be used to list the current software packages. Since the number of packages may be very large, here we need to use the grep command to filter out only the packages we are interested in. For example
yum list | grep lrzsz
The specific software is shown below
The action of lrzsz is like searching for a software on our mobile APP and the name will pop up
lrzsz represents the name of our software
. el7 means CentOS7 The function of install is not just to install Its essence is to download and install This is the three pillars of our yum I have to ask here every time. Do I confirm that I need to delete it? This is very troublesome, so we directly enter this line of instructions to get it done once and for all Assume that I have installed it now. I don’t need this software now. I want to uninstall it now. Then I need to enter this line of command.
Surroundings of yum - the entire ecological issue of yum
We will talk about this in the next article