[Original] use Centos-DVD as The YUM source to install the system

Source: Internet
Author: User
For more information about mount usage, see http://blog.haohtml.com/archives/9583. you can use the Centos DVD as the software yum source to install the software. 1. mount CDROM.
Mkdir/mnt/cdrommount-t auto/dev/cdrom/mnt/cdrom
For more information about mount usage, see mount.
Cd/etc/yum. repos. d/
Mv CentOS-Base.repo CentOS-Base.repo.bakvi CentOS-Media.repo
Delete the last two rows of the following three rows
Baseurl = file: // media/CentOS/file: // media/cdrom/file: // media/cdrecorder/
The first line is changed to the path of the attached disk, as follows:
Baseurl = file: // mnt/cdrom/
Then, find this attribute and change the value to 1, so that the enable switch of the local source file is enabled. Enabled = 0
Changed to enabled = 1
Save it. if you use the yum command to install the software, the software will be directly installed from the DVD. Gpgkey = file: // etc/pki/rpm-jpg/RPM-GPG-KEY-CentOS-5 note: Here is the authentication file named RPM-GPG-KEY in the designated disc

# Yum clean all
# Yum makecache

If you want to install LNMP, there is no way to use it. no software is available in the DVD.

Installation tutorial: install lnmp in CentOS (Nginx + PHP + MySQL)

======================= Meaningless separator ============================ =====
Configure yum repository (RedHat)

Vi/etc/yum. repos. d/install. repo (install. repo is custom, but it must end with repo before the system can recognize) [rhel-ClusterStorage] (repository name) name = rhel-ClusterStorage (description) baseurl = file: /// mnt/ClusterStorage (source installation, ftp or http format can also be used) enabled = 1 (whether to enable this repository, 1 is enabled, 0 is not enabled) gpgcheck = 1 (1 indicates detecting gpgkey, 0 indicates not detecting) gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release)
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.