The centos8 distribution is released through the BaseOS and AppStream repositories. AppStream is a new extension of the traditional rpm format that provides multiple major versions of a component at the same time. CentOS8 comes with NGINX packaged in it. This article introduces how to configure the local yum source in CentOS8. The specific contents are as follows: 1. Create a directory 2. Mount your cdrom file. 2.1 Optical drive method Using the CD-ROM drive, for vmware users, you can directly use the image, as shown in the figure Then enter the directory. As long as the following files can be listed, it means the mount is successful. 2.2 Mount using iso image file First you have to transfer the iso file to your centos, you can only think of a way here. If there is no network, use a USB drive. If there is no USB drive, use a CD-ROM drive. In short, it has to be transferred to the corresponding directory Then use the mount command to mount the file. The difference is whether there is parameter -o 3 Enter the /etc/yum.repos.d directory 4. Open the CentOS-Media.repo file The file is modified as follows, with 6 changes 3. Shield the default image vim enters the following 3 files, and then changes enabled=0 It should look like the following, but there is a problem. If you want to install the package via the network in the future, remember to change it to 1 to re-enable it. 3.yum clean all Clear the cache 4.yum makecache Rebuilding the cache 5. Result Verification Try searching for any package. yum search openssh If there is no problem, it means the configuration is ok 6. Automatically hang the disk when starting up This is to avoid the problem that the mirror source cannot be accessed after restart. We need to configure the mount operation in our /etc/fstab file 6.1 Use mount -l to view the information of the mounted disk From the above, we can get 5 pieces of information In fact, it can also be written like this The device name is what I linked, so I can just fill in sr0 here, but I still write /dev/cdrom 6.2 Configure information into /etc/fstab file Summarize The above is a detailed tutorial on how to configure the local yum source for CentOS8. 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! You may also be interested in:
|
<<: Analysis of a MySQL deadlock scenario example
>>: Detailed explanation of as, question mark and exclamation mark in Typescript
The company project was developed in Java and the...
While the paperless world has not yet emerged, mo...
background A colleague is working on his security...
How to write transparent CSS for images using filt...
1. Download First of all, I would like to recomme...
Today I sent a small tool for Ubuntu to a custome...
Purpose Understand the Nginx ngx_http_limit_conn_...
This article shares the specific code of Element-...
There are many articles about MySQL installation ...
The installation of MySQL 5.7 on Ubuntu 1804 is i...
I have been depressed for a long time, why? Some t...
Table of contents 1. Application Lifecycle 2. Pag...
First install ssh in Linux, taking centos as an e...
Maybe everyone knows that js execution will block...
Developers familiar with Element-UI may have had ...