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 build yum Warehouse by mounting system CD in VMware15.5 version

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

Share

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

This article mainly introduces the VMware15.5 version by mounting the system CD-ROM how to build yum warehouse, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

One, one. Turn on the CentOS 7 virtual machine.

two。 Log in to the virtual machine and select the unlisted user name: root password: enter the password you set and click to log in.

3. Right-click to open the terminal.

4. Enter cd twice.. Command to return to the root directory.

5. Create a directory called chenzishuo and type mkdir / chenzishuo at the terminal

6. Configure the local yum, mount the CD to Chen Zishuo, and enter mount / dev/cdrom / chenzishuo at the terminal

7. Enter the yum.repos.d file and enter the command ls to open the current folder after the terminal input cd / etc/yum.repos.d is completed.

8. Enter the input command at the terminal:

Mv CentOS-Base.repo CentOS-Base.repo.bak

Mv CentOS-Debuginfo.repo CentOS-Debuginfo.repo.bak

Mv CentOS-Vault.repo CentOS-Vault.repo.bak

Mv CentOS-CR.repo CentOS-CR.repo.bak

Mv CentOS-fasttrack.repo CentOS-fasttrack.repo.bak

Mv CentOS-Sources.repo CentOS-Sources.repo.bak

9. Open the CentOS-Media.repo file and enter the command vi CentOS-Media.repo at the terminal

10. Modify the contents of the current file.

Change to: baseurl = file:///chenzishuo

Gpgcheck = 0

Enabled = 1

Finally, press esc and shift and: enter wq to save exit

11. Enter the command yum list at the terminal

twelve。 Wait a while, and the list appears indicating that the yum local warehouse has been built successfully.

Thank you for reading this article carefully. I hope the article "how to build a yum warehouse in the VMware15.5 version by mounting the system CD" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

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