Based on redhat6.4 local yum and ftpyum source configuration

  

This is the process of my configuration in the project, absolutely no problem:
Sometimes when the program is updated, some installation packages are missing, and RPM is installed. There will be a lack of dependency packages that cause various problems. But through the yum way to install, it has its own data dictionary, can automatically calculate the dependencies between the various packages, automatically install the dependent package, the following describes the local yum source and ftp source configuration.

Configure the local yum source
to put the CD or upload the iso image; mount to the specified directory: mount /dev/sro /mnt; (you can use the mount command to view the mount area) If it is a mirror File, you can use mount XXX.iso –o loop /mnt to mount and edit the yum configuration file: create a new .repo file

vi /etc/yum.repos.d/rhel-update.repo

[rhel-base]

name=base

baseurl=file:///mnt

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
The configuration work has been completed after completing the above work: install yum install XXX -y, uninstall yum Remove XXX –y (-y is no reminder to install automatically).

Configure the ftp source
into the CD or upload the iso image; mount to the specified directory: mount /dev/sro /mnt; if it is an image file, you can use mount XXX.iso –o loop /mnt Mount; must install the vsftpd service, check whether it is installed, if not, find and install it in the image package; let ftp log in anonymously. If the anonymous user login is prohibited before, modify it in the configuration file, the system defaults to anonymous user. Can log in. Mkdir /var/ftp/pub/rhel6.4

cp –rf /mnt/* /var/ftp/pub/rhel6.4

rm -fr /var/ftp/pub/rhel6. 4/*.html
Modify the rhel-update.repo file


[RHEL64]

name=RHEL64

baseurl=ftp://133.1. 5.18/pub/rhel6.4

enabled=1

gpgcheck=1

gpgkey=ftp://133.1.5.18/pub/rhel6.4/RPM-GPG -KEY-redhat-release
When you want to use yum on any machine, you can use this rhel-update.repo file cp to /etc/yum.repos.d/; use: install yum install XXX -y, Uninstall yum remove XXX –y (-y is no reminder to install automatically).

Copyright © Windows knowledge All Rights Reserved