Redhat Configuring the CentOS network Yum source

Source: Internet
Author: User

Programme one:

Configuring the network Yum Source
RPM-IVH vsftpd-2.2.2-6.el6_0.1.x86_64
Service VSFTPD Restart
Chkconfig--level vsftpd on
cd/var/ftp/pub/
mkdir Yum
Change the mount point above to/var/ftp/pub/yum.
Vim/etc/yum.repos.d/rhel-source.repo
[Server]
Name=server
baserul=ftp://pub/yum/server/# (Note to mount the optical drive)
Enable=1
Gpgchechk=0
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release
4. Set Boot up
Vim/etc/fstab
Add the following line
/dev/cdrom/Mounted directory iso9660 Noauto,ro 0 0


Scenario Two:

1. Delete Rhel's original Yum
Rpm-aq|grep Yum|xargs rpm-e--nodeps
2. Download the new Yum installation package #这里我们使用CentOS的yum源
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-30.el6.centos.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

(Note: wget may indicate that some packages do not exist because these RPM packages have been updated.) You can open the page http://mirrors.163.com/centos/6/os/x86_64/Packages/and get the new installation package address based on the conditional search)

3. Install the Yum package
RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm

RPM-IVH yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

RPM-IVH yum-3.2.29-30.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

(Note: The last two packages will be installed together at the same time, otherwise you will be prompted to rely on each other and the installation fails.) )

4. Change the Yum source
cd/etc/yum.repos.d/

wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo

VI Centos6-base-163.repo #编辑文件

%s/$releasever/6/ge #把文件里面的 $releasever Replace all with version number 6

5. Test if Yum is available
Yum Clean all #清理yum缓存

Yum Makecache #将服务器上的软件包信息缓存到本地 to improve the speed of search and install software

Yum Install vim* #测试yum是否可用


This article is from the "intentions to create value, late coffee" blog, please be sure to keep this source http://wandiankafei.blog.51cto.com/10878910/1767536

Redhat Configuring the CentOS network Yum source

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.