Software installation under Linux system

Zero. Preface

This article will introduce the software search, installation and deletion under Linux system, and introduce two interesting software and how to realize mutual transfer software between Linux system and Windows system.

1. Three ways of software installation

In the process of software installation, there may be a large number of dependencies between software, and it is very troublesome to install one by one.
1. Source code installation
2. rpm installation
3. yum installation
Source code installation may cause errors in the compilation of the same code in different environments, and yum itself will consider dependencies, so we try to use yum for installation.

2. Understanding of installing software

Under the Windows system or the Android system, when we install software, there will be something called the software store. Find the software you want to install, such as King of Glory, and download and install it directly. And linux also has something like a software store, its name is yum.
In the process of installing software, in addition to our client, we also need a remote server. Every time we download software, we need to request software from the server.
insert image description here
The server can be understood as a computer without a keyboard, mouse and monitor, and the system running on it is the Linux system. All the applications we can download are on the remote server, waiting for us to download at any time.
Some people will say, why not run windows?
This is because a server will basically not be shut down since it is bought and turned on by a large company, and it will run until it is scrapped. This is why sometimes we can still play Douyin or play games in the middle of the night. Obviously, it is impossible for the Windows system to be turned on for such a long time and easily abolished. In comparison, the Linux system is more stable, largely due to its open source.
Our mobile phone has stored the address of the corresponding server, so we can find the server and download the corresponding software.
The point here is that yum is the equivalent of a software store. is connected to the remote server.

3. Software installation three-axes

(1)yum list

This command is used to list the software after searching, or directly enter yum list to list all the software that can be downloaded.
insert image description here
For example, if we want to find the software sl.x86_64, we can use the grep we learned before to filter:
insert image description here
we have found a lot of matching software, from which we can also find the software we need: sl.x86_64
insert image description here
Among them, 5.02- 1 represents the version number, and @epel represents the installation source (just like @ Tencent when installing the king).

(2)yum install

We can install sl.x86_64. Execute the command directly:
yum install sl.x86_64
insert image description here
This completes the installation.
insert image description here
During the installation process, you will also be asked whether to install, enter y here to agree to the installation. If you don't want to be asked, you can add -y after yum.
We can run the software through the specific sl command of the software:
insert image description here
this is a small train program.
Let's install a small program called cowsay, and the result after running is this:
insert image description here

(3)yum remove

yum remove can be used to delete software. If you don't want to be asked whether to delete it, you can add the -y option after yum.
insert image description here
In this way, the software has been removed.
In the process of learning, we can install software while learning, and we can also search for some interesting software under Centos7 to install.

4. The location of yum

Our yum source exists in /etc/yum.repos.d/. We only need to care about the centos-Base and repo in this path. This file contains the corresponding server addresses of various software.
insert image description here
Some epel source software cannot be installed, we can install the extension source by: sudo yum install -y epel-release.
insert image description here

Precautions

1. To work, yum must be connected to the Internet.
2. In centos, only one yum is running, and only one software can be installed at the same time.

5. Realize linkage with windows

In order to achieve drag-and-drop upload, or command upload, we can install lrzsz to link the Linux system with the peripheral Windows system.

yum -y install lrzsz

After installation, you can directly drag and drop to upload:
insert image description here
if you don't want to drag and drop, we can also use the rz and sz commands:
insert image description here
when we use the sz command, a dialog box will automatically pop up to enter the address where you want to transfer the file.
Similarly, we can also use rz to transfer files from Linux like Windows.
insert image description here

6. Summary

After learning software installation, we can better download or use various programming tools, but the Linux system is for programmers, and there are not many interesting games to play~ Welcome everyone to have fun and develop a A Linux-based game (tears). Finally, everyone is welcome to connect with one click.
ps: Amway is a game called hacknet, which is basically a pure command. If you are interested, you can play it.

Guess you like

Origin blog.csdn.net/qq_51492202/article/details/123546834