How to use CentOS to mount the CD Linux code # mkdir/media/cdrom # mount/dev/cdrom/media/cdromyum source file description in/etc/yum. repos. the d/directory contains two CentOS-Base.repo files: CentOS-Media.repo and CentOS-Base.re... how to use CentOS to mount the CD Linux code # mkdir/media/cdrom # mount/dev/cdrom/media/cdrom yum source file description in/etc/yum. repos. d/There are CentOS-Base.repo and CentOS-Media.repo files in the directory the CentOS-Base.repo records the resource information on the CD recorded by the resource information CentOS-Media.repo on the network, open the file with vi, contains the following line of code Linux code # yum -- disablerepo = \ * -- enablerepo = c6-media [command] -- disablerepo = \ * indicates that all resources under the \ directory are not used -- enablerepo = c6-media representation use the resource command example Linux code # yum -- diablerepo = \ * -- enablerepo = c6-media install gcc Red Hat Enterprise Linux use method mount CD Linux code # mkdir/media/ cdrom # mount/dev/cdrom/media/cdrom edit the yum source file in/etc/yum. repos. d. create a file and dvd in the directory. repo, and add the following code to Linux code [local-Server] baseurl = file:///media/cdrom/Server Enabled = 1 gpgcheck = 0 [local-HA] baseurl = file:///media/cdrom/HighAvailability Enabled = 1 gpgcheck = 0 [local = LB] baseurl = file:///media/cdrom/LoadBalancer Enabled = 1 gpgcheck = 0 [local-RS] baseurl = file:///media/cdrom/ResilientStorage Enabled = 1 gpgcheck = 0 update yum source Linux code # curran by yum update
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service