Linux production ISO file

Source: Internet
Author: User

1 overview

For the convenience of daily work, we can make our own ISO file, convenient for later use

2 Operation 2.1.CP Direct production

The format is as follows

CP Disc Path newly generated ISO file path

Example

Cp/dev/sr0./tt1/centos6.iso

This is equivalent to burning the disk, the resulting file Centos6.iso can do the boot disk

2.2 Using script mkdvdiso.sh to create

The following is the mkdvdiso.sh script download path. This script can only be centos4,5,6, three versions may be made

Https://wiki.centos.org/TipsAndTricks/CDtoDVDMedia

1 Software Installation

Yum Install Createrepo

Yum Install Isomd5sum//installs this software before you can view Help for script mkdvdiso.sh

Md5sum is the command to MD5 a file/string. A MD5 value that is typically used to compare two files for equality, so it is often used as a version of the tag

chmod +x mkdvdiso.sh.

The format is as follows

./mkdvdiso.sh the file name of the local result where the source files are placed. iso file

Example

./mkdvdiso.sh/root/iso/root/centos6-i386.everything.boot.iso

Note that this./mkdvdiso.sh for 6来, in addition, in the source of the directory/root/iso (directly copy the CD-ROM files to this path) under the EULA and the GPL two files, to be deleted, must exist there. Discinfo and. Treeinfo the two hidden files.

If the old installation package is considered too small in daily work, it can be copied to the/root/iso/packages and made into a CD

3 Making Yum sources

The above two methods can be made into the installation of the boot disk, here is a way to repackage the Yum source, the purpose is to put as many RPM packages together, packaged into a file, convenient for later software installation, do not need to always repeat the new disk to obtain a different RPM package

1 Cp-r/First disc/*/iso/First Add all the contents of a disk to the same directory

Then mount a new disc to the machine, and copy the new disc RPM package to the/iso/packege that has already been copied, that is, all the packages are put together.

2/BIN/CP-RF/Another disc/packages/*.rpm/root/iso/packages/

Of course, this can also be 6 and 7 of the package are copied together, for example, under the ISO Create folder/iso/centos6/and/iso/centos7 respectively put in here to put two different system files on the corresponding path down.

3 Make disc file, but only as Yum source, not as system boot disk

Mkisofs-r-O centos6-i386.everything.iso/iso/the path where the data is stored. The data here is the RPM package.

Note: This method does not work as a startup disk, it can only be used to do yum source


This article is from the "Self-learning Linux" blog, so be sure to keep this source http://ghbsunny.blog.51cto.com/7759574/1958165

Linux production ISO file

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.