RedHat 7 configure local yum Source
In this article, the local yum source is configured to copy the content of the RedHat 7 system disk to the/RH7ISO directory of the server hard disk, and then configure yum to point to this directory. First, mount the optical drive to the/mnt Directory: mount/dev/cdrom/mnt
Copy the content of the system disk to the/RH7ISO Directory: cp-R/mnt/* RH7ISO
Go to the yum configuration Directory: cd/etc/yum. repos. d/
Create a yum configuration file: touch rh7ISO. repo
Edit the configuration file and add the following content: vi rh7ISO. repo
Clear yum cache: yum clean all
Cached package information in the local yum Source: yum makecache
Configuration complete! You can directly use yum install packname to install yum!
For more YUM tutorials, see the following:
RedHat 6.2 modify yum source in Linux use CentOS source for free
Configure the epel yum Source
Redhat local yum source configuration
Description of yum configuration file
Install yum in RedHat 6.1)
YUM installation and cleaning
Build yum local source on CentOS 6.4