yum installation tool under Linux

yum installation tool under Linux

1. What is a software package

Execution of software: download program source code—>compile—>get executable program

But this is too troublesome: compile in advance -> put on the server: manage compiled software packages

Packages and Package Managers <—> APPs and APP Stores

2. How to download the software

1. To install the software, you need to download the software package: download online

2. The software package is not on your local computer, where is the software package? —>On someone else’s computer—>Remote server/cloud server

3. How to know which server on the network the software to be downloaded is on?

—>Computer: search, official website download Mobile phone: application store Linux?

Software on Linux: Open Source! —> Put it on the rented server

How do Linux users know where to download? —>Different communities have their own built-in servers and download links for corresponding applications!

Then yumthe tool is equivalent to the app store on the mobile phone, find the link to download the software

What are tools? The essence of a tool is also an instruction!

Who provides the server and who puts it on the server? ——Business Ecology

1. Enterprises, organizations and individuals for certain interests

2. Where is the good software package provided?

>Computer: on the official website

>Mobile phone: the server provided by the mobile app store (We will find that mobile phone manufacturers of different brands will actively provide app stores, because the developed software must be negotiated with mobile phone manufacturers to form an ecology !

For Linux:Localization of Linux software ecology

1. There are a lot of open source software under Linux, but most of the open source software communities are abroad** (servers are abroad)**, and it is very inconvenient to visit foreign countries in China; therefore, some domestic enterprises (Ali, Baidu) and some efficient (Tsinghua University, Peking University), they will do something to make it easier for people who switch to

—>Mirrored foreign software services— >to domestic servers

2. For domestic computers, of course, you can access domestic and foreign servers, but domestic ones are much more stable

3. The configuration file of the download link after mirroring is still a foreign link, so a set of domestic download links is provided

Configuration file: yum source file

3. Check the software package

When we know some of the software names to be installed, we can search and view them through yum:

① List all the software on the remote server corresponding to the current yum source

yum list

image-20230406210815981

②Assuming we know part of the name of the software, we can search for the software as follows

yum list | grep sl

image-20230406211000259

Can be understood as, keyword search


4. rzsz tool installation

This tool is used for Windows machines and remote Linux machines to transfer files through XShell. Installing this tool can upload files by dragging and dropping

Next, we download and install through the yum tool rzsz. The steps are as follows:

yum list | grep lrzsz     #搜索该工具

image-20230406205827918

The installation tool requires root privileges, which can be accessed through sudoprivilege escalation

sudo yum install lrzsz    #安装该工具

image-20230406205951527

ping www.baidu.com        #检查是否联网

image-20230406210106146

rz

It is used to transfer files from windows machine to remote Linux machine through XShell

Syntax: rz

image-20230406210312183

sz

For the remote Linux machine to transfer files to the windows machine through XShell

Syntax: sz [file name]

For example, we want to upload Test.txtto a windows machine:

sz Test.txt

image-20230407120123587


5. Install the software

yum install [软件名]

Generally, installing software requires root privileges, so sudoprivilege escalation can be used:

sudo yum install [软件名]

There may be an option to ask during installation: choose yes ( y) or no ( n), so we can choose all of them in the following ways y:

sudo yum install -y [软件名]

-yOn behalf of all installation operations, the default is to install directly without asking , for example:

sudo yum install -y sl         #安装一个小火车软件

Enter the command sl, the software runs as follows:

sl

image-20230407120426042

Guess you like

Origin blog.csdn.net/kevvviinn/article/details/130010996