yum installation tool under Linux
Table of contents
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 yum
the 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
②Assuming we know part of the name of the software, we can search for the software as follows
yum list | grep sl
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 #搜索该工具
The installation tool requires root privileges, which can be accessed through sudo
privilege escalation
sudo yum install lrzsz #安装该工具
ping www.baidu.com #检查是否联网
rz
It is used to transfer files from windows machine to remote Linux machine through XShell
Syntax: rz
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.txt
to a windows machine:
sz Test.txt
5. Install the software
yum install [软件名]
Generally, installing software requires root privileges, so sudo
privilege 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 [软件名]
-y
On 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