1.2centos6.5 Local Yum Source configuration

Source: Internet
Author: User
Tags yum repolist

1. Backing Up/etc/yum.repos.d/files

[Email protected] ~]# cp-r/etc/yum.repos.d//etc/yum.repos.d.bak

[Email protected] ~]# ls/etc/yum.repos.d*-D


2. Delete the system network Yum file

[Email protected] ~]# Rm-rf/etc/yum.repos.d/centos-base.repo

[email protected] ~]# Yum repolist

Loaded Plugins:fastestmirror

Loading mirror speeds from cached hostfile


3. Create a local Yum source configuration file

[Email protected] ~]# Vim/etc/yum.repos.d/cdrom.repo






4. Virtual Machine Connection DVD, Mount Optical Drive

[Email protected] ~]# Mkdir/mnt/cdrom

[Email protected] ~]# mount/dev/sr0/mnt/cdrom/

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

5. List the Yum repositories

[email protected] ~]# Yum repolist

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/77/0F/wKiom1ZhpQrxbDRhAAAoV7yz1JY268.jpg "title=" 20.jpg "alt=" Wkiom1zhpqrxbdrhaaaov7yz1jy268.jpg "/>

[email protected] ~]# Yum Install Samba

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M02/77/0F/wKiom1ZhpzHyogMxAAJOkaBK6zk129.jpg "title=" 21.jpg "alt=" Wkiom1zhpzhyogmxaajokabk6zk129.jpg "/>

1.2centos6.5 Local Yum Source configuration

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.