Rhel6.4 configure the local yum Source

Source: Internet
Author: User

Rhel6.4 configure source 1 for local yum to create a rhel-debuginfo.repo, if yes, back up before removing cd/etc/yum. repos. d rm rhel-debuginfo.repo vi rhel-debuginfo.repo inserts the following content [Server] name = Red Hat Enterprise Linux Server baseurl = file: /// mnt # local iso mounting path enabled = 1 # You can use yum gpgcheck = 0 # Set not to check gpgkey = file: /// mnt/RPM-GPG-KEY-redhat-release # configure gpgkey Path 2 modify yumRepo. py configuration file cd/usr/lib/python2.6/site-packages/yum/vi yumRepo. py locate remote = url + '/' + Relative # change row 802 to remote = "/mnt" + '/' + relative 3 mount the iso file mount/dev/cdrom/mnt 4 test and install ftp. By default, yum list is not installed. | grep vsftpd. i686 2.2.2-11. el6 @ Server Installation: yum install vsftpd. i686 [root @ redhat6 yum] # rpm-e vsftpd. i686 [root @ redhat6 yum] # yum install vsftpd. i686Loaded plugins: fastestmirror, product-id, sub‑managerthis system is not registered to Red Hat sub‑management. you Can use sub‑manager to register. loading mirror speeds from cached hostfileSetting up Install ProcessResolving Dependencies --> Running transaction check ---> Package vsftpd. i686 0: 2. 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 kInstalled size: 344 kIs this OK [y/N]: yDownloading Packages: Running Transaction TestTransaction Test SucceededRunning TransactionWarning: 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. 5.8 ', '21. el6') PackageKit-0.5.8 -21. el6.i686 has missing requires of PackageKit-yum-plugin = ('0', '0. 5.8 ', '21. el6 ') rhn-check-1.0.0.1-4.el6.noarch has missing requires of yum-rhn-plugin> = ('0', '0. 9.1 ', '35') Installing: vsftpd-2.2.2-11.el6.i686 1/1 Verifying: vsftpd-2.2.2-11.el6.i686 1/1 Installed: vsftpd. i686 0: 2. 2.2-11. el6 Complete! Verification Successful
 

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.