Native Yum source installation configuration for Beginners Learning Linux

Source: Internet
Author: User
Tags gpg

Local Yum Source Configuration

1. View Disc mount status

[Email protected] ~]# mkdir/test

[Email protected] ~]# mount/dev/cdrom/test/

Mount:blockdevice/dev/sr0 is write-protected, mounting read-only

[[email protected] ~]# DF

Filesystem 1k-blocks used Available use% mounted on

/dev/sda3 19407136 3331396 15089884 19%/

Tmpfs 514352 514280 1%/DEV/SHM

/DEV/SDA1 198337 28139 159958 15%/boot

/dev/sr0 3757116 3757116 0 100%/test

[Email protected] ~]#

2. Modify Yum configuration file

[Email protected] ~]# cd/etc/yum.repos.d/

[[Email protected]]# mv Centos-base.repo Centos-base.repo.bak

[Email protected]]# vim Centos-media.repo

Main configuration:

[C6-media]

name=centos-$releasever-media

baseurl=file:///test/

gpgcheck=0

enabled=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6

Keep Important information, all other delete

3. Test Local Yum installation

[Email protected]]# yum Install gcc

A whole bunch of data pops up and that's it.


This article from the "11465309" blog, reproduced please contact the author!

Native Yum source installation configuration for Beginners Learning Linux

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.