RHEL6.4 configure the local yum Source

Source: Internet
Author: User

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

Related Article

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.