Configure the local YUM source in RHEL6.5 and RHEL6.5 configure the YUM Source
1. Create a rhel-debuginfo.repo. If yes, back up and delete it.
cd /etc/yum.repos.d rm rhel-debuginfo.repo vi rhel-debuginfo.repo
Insert the following content:
[Server] name = Red Hat Enterprise Linux Server baseurl = file: /// home/redhat-iso # local iso Mount path enabled = 1 # You can use yum gpgcheck = 0 # Set not to check gpgkey = file: /// home/redhat-iso/RPM-GPG-KEY-RedHat-release
2. Modify the yumRepo. py configuration file.
cd /usr/lib/python2.6/site-packages/yum/vi yumRepo.py
FindRemote = url + '/' + relative #802 rows
Changeremote = "/home/redhat-iso" + '/' + relative
3 mount an iso file
mkdir /home/redhat-iso mount /dev/cdrom /mnt/cdrom
Or:
mount -o loop /home/Soft/rhel-server-6.3-x86_64-dvd.iso /mnt/cdrom
4. Copy Data
cp /mnt/redhat-iso/* /home/redhat-iso
5. Clear yum cache:
yum clean all
6. ftp is not installed by default.
yum list | grep vsftpd
View Original
Reading