Yum specifies how to install software from a source

Time:2021-2-20

One command, one parameter

Copy code

The code is as follows:

[[email protected] ~]# yum install nginx –enablerepo=epel

Let me explain a little bit

Copy code

The code is as follows:

yum install XXX –enablerepo=YYY

XXX is the software to be installed, YYY is the name of the repo source.
It is recommended to choose the same source as much as possible when installing.
Because the software installed from different sources may conflict. For example, f * D of Mplayer