We all know that yum can be used only when connected to centos, and is limited by the network speed. In addition, RHEL needs to buy a red hat subscription account to install software and update the system online. If you use a local CD as the yum source, the speed will be faster and RHEL can also be used. 1. Insert a CD in the optical drive, or mount the iso file. 2. log on to the terminal as a root user. 3. run the following command to mount the CD: [root @ centos6 ~] #
We all know that yum can be used only when connected to centos, and is limited by the network speed. In addition, RHEL needs to buy a red hat subscription account to install software and update the system online. If you use a local CD as the yum source, the speed will be faster and RHEL can also be used.
1. Insert a CD in the optical drive or attach an iso file.
2. log on to the terminal as a root user
3. run the following command to mount the disc.
[root@centos6 ~]# mkdir /mnt/cdrom[root@centos6 ~]# mount -o ro /dev/cdrom /mnt/cdrom
4. create the text file server. repo under/etc/yum. repos. d.
[root@centos6 ~]# vim /etc/yum.repos.d/server.repo
Add the following content:
[server]name=serverbaseurl=file:///mnt/cdrom/Workstationenabled=1
The location of the baseurl depends on the location where the disk is mounted and the version released in linux.
5. test yum
[root@centos6 ~]#yum clean[root@centos6 ~]#yum list
You can see the software packages that can be installed.