VMware 15.5 version of the graphic tutorial to build a yum warehouse by mounting the system CD

VMware 15.5 version of the graphic tutorial to build a yum warehouse by mounting the system CD

1. Open the CentOS 7 virtual machine.

2. Log in to the virtual machine and select the unlisted username: root Password: Enter the password you set and click Login.

3. Right click to open the terminal.

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

5. Create a directory called chenzishuo and enter mkdir /chenzishuo in the terminal

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

7. Enter the yum.repos.d file and enter cd /etc/yum.repos.d in the terminal. After entering, enter the command ls to open the current folder.

8. Enter the command in 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 in the terminal

10. Modify the content of the current file.

Change to: baseurl = file:///chenzishuo

gpgcheck = 0

enabled = 1

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

11. Enter the command yum list in the terminal

12. Wait for a while, and the list will show that the yum local warehouse has been built successfully.

Summarize

The above is the graphic tutorial of VMware 15.5 version that I introduced to you by mounting the system CD to build a yum warehouse. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Graphic tutorial on installing CentOS7 on VMware 15.5
  • VMware 15.5 version installation Windows_Server_2008_R2 system tutorial diagram

<<:  A brief discussion on using Vue to complete the mobile apk project

>>:  Install mysql5.7 on Ubuntu 18.04

Recommend

Three ways to share component logic in React

Without further ado, these three methods are: ren...

Font Treasure House 50 exquisite free English font resources Part 1

Designers have their own font library, which allo...

Detailed explanation of docker entrypoint file

When writing a Dockerfile, include an entrypoint ...

Detailed explanation of the use of MySQL mysqldump

1. Introduction to mysqldump mysqldump is a logic...

HTML input file control limits the type of uploaded files

Add an input file HTML control to the web page: &...

30 Tips for Writing HTML Code

1. Always close HTML tags In the source code of p...

JavaScript to add and delete messages on the message board

This article shares a small example of adding and...

Two methods to disable form controls in HTML: readonly and disabled

In the process of making web pages, we often use f...

JavaScript to achieve product query function

This article example shares the specific code of ...

Detailed explanation of Nginx regular expressions

Nginx (engine x) is a high-performance HTTP and r...

How to install Solr 8.6.2 in Docker and configure the Chinese word segmenter

1. Environment version Docker version 19.03.12 ce...

JavaScript ECharts Usage Explanation

I used ECharts when doing a project before. Today...

mysql5.7 installation and configuration tutorial under Centos7.3

This article shares the MySQL 5.7 installation an...