Simple steps to build a local repository yum source in Linux

Source: Internet
Author: User

1. Mount the image

[[email protected] ~]# mount /dev/cdrom /mnt

2. Create a new directory to hold the image file

[[email protected] ~]# cd /opt/[[email protected] opt]# mkdir lin.d

3. Back up the image file to a new directory

[[email protected] opt]# cp -r /mnt/* /opt/lin.d/

4. Edit the new configuration file

[[email protected] ~]# vi /etc/yum.repos.d/doudou.repo[doudou]name=This is a boybaseurl=file:///lin.denabled=1gpgcheck=0

5. Removing the configuration file

 [[email protected] ~]# mv /etc/yum.repos.d/doudou.repo .

6. Clear the Cache

 [[email protected] ~]#yum clean all

7. View the list

[[email protected] ~]#yum list all

8. Check whether the local warehouse is successfully built
Install a non-installed source package to check if the installation was successful

Simple steps to build a local repository yum source in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.