Configure YUM local repository

Source: Internet
Author: User
Configure YUM local repository 1. I use an image file to mount a CD, mount-oloop/root/centOS5.4.iso/media/cdrom can also be used with mount-tiso9660/dev/cdrom/mnt/cdrom to use this to ensure that the/mnt Directory has cdrom this folder 2. install... configure YUM local repository 1. I use an image file to mount a CD, mount-o loop/root/centOS5.4.iso/media/cdrom can also be used with mount-t iso9660/dev/cdrom/mnt/cdrom. make sure the/mnt directory contains the cdrom folder 2. install createrepo1. go to the cd CentOS Directory: cd/media/cdrom/CentOS 2. install createrepo: rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm after successful installation of the following operations (enter create under the terminal press 2 tab key createrepo should be installed) 3. copy the CentOS folder of the CD to the/media Directory (this advantage is that you do not need to modify the yum configuration. copy files: cp-rv/media/cdrom/CentOS/media (this time is quite long) 4. create a local yum repository. command: createrepo/media/CentOS/(please wait) 5. yum update cache 1. command: yum -- disablerepo = * -- enablerepo = "c6-media" makecache6.yum local installation software 1. install: yum -- disablerepo = * -- enablerepo = "c6-media" install vsftpd2. uninstall: yum -- disablerepo = * -- enablerepo = "c6-media" remove vsftpd now local ground source has been completed
Related Article

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.