Most of the time we use Yum in a networked environment, and if the servers we work with are not networked, and only one server can connect to the extranet, how do we use the Yum command to download the required packages and then copy them to which Web machine? In fact, the method used is very simple, the specific command is as follows:
Yum-y Install vim--downloadonly--downloaddir=/tmp This command means only download Vim does not perform the installation, and then put the software download location in the TMP folder, you can automatically download dependent related packages, Then let's look at other advanced uses.
--Deplist VIM will list the dependent packages of vim
--enablerepo=xxxx enable a certain Yum repository
--disablerepo=xxxxx Disabling a yum repository
--groupremove XXX Delete a group of software
--groupadd xxxx Install a group of software
--groupupdate xxxxx Upgrade a group of packages
Advanced ways to use Linux yum commands