Centos local ground source construction-iso

Source: Internet
Author: User
Centos local ground source Construction & mdash; iso description: centos source construction is easier and easier than 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. it is mounted on the vm and is directly built on the centos local source in linux.
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, which is a virtual machine. mount the file on the vm and you will 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. use cp */iso3. to enter the centos yum source configuration directory cd/etc/yum. repos. d4. back up, this thing basic configuration, copy the network yum source configuration file Mv Centos-Base.repo .... back5. Backup. this is the default configuration file for mounting the disk Source. it is unclear whether the file can be used by default. here the configuration is used to find the source from the specified image. Cp Centos-Media.repo... back6. configure the local source. this is the key. gpgkey indicates the file to be found. gpgcheck = 1 indicates whether to use the officially certified software. you can set this parameter to 0 and then delete the gpskey, it is best to do this. You can also use this source as the yum source on other machines. The idea is to install ftp or apache and release it. for details, see the following. Vi Centos-Media.repo [c6-media] name = CentOS-$ releasever-Mediabaseurl = file:///iso/gpgcheck=1enabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-67 . This is equivalent to letting the system identify the source and verify whether it is successful. Yum repolist8. add the software package,/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) is saved. Then add it to Package. Createrepo iso. Here is the configuration description of iso as the Lan Source. the above-level source configuration is based on I. ftp installation yum install vsftpd II. put the iso above in/var/ftp, and restart ftp service vsftpd start to access iso 3. modify/etc/yum. repos. centos-m \ Media under d. repo. for details about the procedure, see 4, 5, 6. modify the baseurl as follows: 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.