Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use CD as yum Source in Centos 6. 0

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "Centos 6.0how to use the CD as a source of yum". In daily operation, I believe many people have doubts about how to use the CD as a source of yum in Centos 6.0. the editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful for you to answer the doubt of "how to use the CD as a source of yum". Next, please follow the editor to study!

When using Centos, it's convenient to use yum to install software packages, but if you can't connect to the Internet, yum won't work.

One way to do this is to use the Centos installation CD as the yum source, and then use yum to install the package. (the following steps pass the test on the Centos6.0 system)

Step 1. First mount the CD to the / media/cdrom directory of the system

Mkdir / media/cdrom / / create a cdrom directory under / media, which is not available by default

Mount / dev/cdrom / media/cdrom / / Mount the optical drive to the / media/cdrom directory

Step 2. Go to the / etc/yum.repos.d directory and do the following

Cd / etc/yum.repos.d

Mv CentOS-Base.repo CentOS-Base.repo.bak / / rename CentOS-Base.repo

Vi CentOS-Media.repo

Modify the gpgcheck parameter to gpgcheck=0

Modify the enabled parameter to enabled=1

Then save the exit. You can now use the yum-y install command to install the package.

At this point, the study on "how to use Centos 6.0as a source of yum" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report