Centos local ground source construction-iso

Source: Internet
Author: User
Tags yum repolist

Note: Building centos sources is easier and easier than building another ubuntu source. The idea is to use iso to create a local source. You can add new software later.

 

1. Enter the iso Mount path. This is a virtual machine. Mount the file on the vm. You can see it in linux. If you need to mount the file, search for the command.

Cd/media/cent .....

2. Copy iso to a fixed folder. Because the mounting is unstable, copy the image to a fixed file in the specified directory.

Cp */iso

3. Enter the centos yum source configuration directory.

Cd/etc/yum. repos. d

4. Backup, the basic configuration of this task, copy the file of the yum source configuration of the Network

Music Centos-Base.repo... back

5. Backup. This is the default Mount disk source configuration file. It is unclear whether it can be used by default. Here, the configuration is to find the source from the specified image.

Cp Centos-Media.repo... back

6. this is the key to configuring the local source. gpgkey indicates the file to be found. gpgcheck = 1 indicates whether to use the officially certified software. You can set it to 0 and delete the gpskey, it is best to do this.

Vi Centos-Media.repo

C6-media

Name = CentOS-$ releasever-Media

Baseurl = file: // iso/

Gpgcheck = 1

Enabled = 1

Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

7. This is equivalent to letting the system identify the source and verify whether it is successful.

Yum repolist

/Var/cache/yum/x86_64/6/you can find the installed software package, but you need to change the configuration yourself (vi/etc/yum. conf keepcache = 1) to save it. Then add it to Package...

 

This section describes the configuration of iso as the LAN source. The above-level source configuration is based on

1. ftp Installation

Yum install vsftpd

2. Put the iso above in/var/ftp, and restart ftp service vsftpd start to access iso.

III. modify/etc/yum. repos. centos-m \ Media under d. repo. For details about the procedure, see 4, 5, 6. modify the baseurl to ftp: // 172.72.103.230/iso.

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.