Building a local YUM warehouse via mount system U disk

First, open hbza (CentOS) and yum, the two must be connected

th1Step: athbza Create a directory and enter mkdir /lxk, start with any name. Entermount /dev/cdrom /lxk

< img alt="Share a picture" src="/wp-content/uploads/images/hardware/storage/1626809362253.png" width="420" height="297" >

​< /p>

2Step: Open span>yum, type “cd /etc/yum.repos.d “Enter, lsView, enter”cd bak “, lsView,Entervi CentOS-Media.repo(vi nothing after the space/)

share picture

Step3Step: After entering, modifyfile:/// lxk ,gpgcheck=1,Change to0,enabled=0Change to 1, press esc,wqSave and exit

share picture

Step 4Step: Enteryum list,< span s tyle="font-family: 宋体;">ViewyumIn the warehouse All software, the local warehouse has been built,Then you can install ityumsource file , Enteryum install the package name to install.

Share a picture Share a picture

Leave a Comment

Your email address will not be published.