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: // mnt # local iso Mount path
Enabled = 1 # yum can be used
Gpgcheck = 0 # Set not to check gpgkey
Gpgkey = file: // mnt/RPM-GPG-KEY-RedHat-release # configure the path of gpgkey
2. Modify the yumRepo. py configuration file.
Cd/usr/lib/python2.6/site-packages/yum/
Vi yumRepo. py
Locate remote = url + '/' + relative # Row 802
Change to remote = "/mnt" + '/' + relative
3 mount an iso file
Mount/dev/cdrom/mnt
4. ftp is not installed by default.
Yum list | grep vsftpd
Vsftpd. i686 2.2.2-11. el6 @ Server
Install: yum install vsftpd. i686
[Root @ redhat6 yum] # rpm-e vsftpd. i686
[Root @ redhat6 yum] # yum install vsftpd. i686
Loaded plugins: fastestmirror, product-id, submodules-manager
This system is not registered to Red Hat sub‑management. You can use sub‑manager to register.
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd. i686. 2.2-11. el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================== ========================================================== ========================================================== ====================
Package Arch Version Repository Size
========================================================== ========================================================== ========================================================== ====================
Installing:
Vsftpd i686 2.2.2-11. el6 Server 157 k
Transaction Summary
========================================================== ========================================================== ========================================================== ====================
Install 1 Package (s)
Total download size: 157 k
Installed size: 344 k
Is this OK [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 3 pre-existing rpmdb problem (s), 'yum check' output follows:
PackageKit-0.5.8-21.el6.i686 has missing requires of PackageKit-yum = ('0', '0. 000000', '21. el6 ')
PackageKit-0.5.8-21.el6.i686 has missing requires of PackageKit-yum-plugin = ('0', '0. 123', '21. el6 ')
Rhn-check-1.0.0.1-4.el6.noarch has missing requires of yum-rhn-plugin> = ('0', '0. 123', '35 ')
Installing: vsftpd-2.2.2-11.el6.i686 1/1
Verifying: vsftpd-2.2.2-11.el6.i686 1/1
Installed:
Vsftpd. i686. 2.2-11. el6
Complete!
Verification Successful
Recommended reading:
Configure the epel yum Source
Redhat local yum source configuration
RedHat Linux local yum source configuration
RedHat 6.2 modify yum source in Linux use CentOS source for free