Centos6.4 configure local source yum

Source: Internet
Author: User
Centos64 configuration local source yum when we install centos64 and cannot connect to the Internet, then our yum command cannot be used. this is where we can configure the local source to use yum Command 1 to configure the repo file, cdetcyumreposd back up the original configuration file mvCentOS-centos6.4 configuration local source yum when we install centos6.4 and cannot connect to the Internet, then our yum command cannot be used, this is where we can configure the local source to use the yum Command 1. configure the repo file, cd/etc/yum. repos. d back up the original profile music CentOS-Base.repo CentOS-Base.repo.bak music CentOS-Debuginfo.repo CentOS-Debuginfo.repo.bak music CentOS-Vault.repo CentOS-Vault.repo.bak music CentOS-Media.repo music CentOS-Media.repo.bak CentOS-Debuginfo.repo create a new profile vim [debug] name = centosbaseurl = file:///mntenabled=1gpgcheck=0gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release : Wq save 2. configure yumRepo. py file, cd/usr/lib/python2.6/site-packages/yum vim yumRepo. in py, replace remote = url + '/' + relative with remote = "/mnt" + '/' + relative: wq save modification 3 configure iso mount file mount/dev/cdrom/mnt 4 verification test (use vsftpd) rpm-qa | grep vsftpd yum list | grep vsftpd [root @ hsj2 yum] # yum list | grep vsftpdvsftpd. i686 2.2.2-11. el6_3.1 @ debug yum install vsftpd. i686 [root @ hsj2 yum] # yum install vsftpd. i686Loaded plugi Ns: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfileSetting up Install ProcessResolving DependenciesThere are unfinished transactions remaining. you might consider running yum-complete-transaction first to finish them. --> Running transaction check ---> Package vsftpd. i686 0: 2. 2.2-11. el6_3.1 will be installed --> Finished Dependency Resolution Dependencies Resolve D =================================================== ========================================================== ==================================== Package Arch Version Repository Size = ========================================================== ========================================================== ====================================== Installing: vsftpd i686 2.2.2-11. el6_3.1 debug 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 2 pre-existing rpmdb problem (s), 'yum check' output follows: glibc-2.12-1.107.el6_4.4.i686 is a duplicat E with glibc-2.12-1.107.el6.i686glibc-common-2.12-1.107.el6_4.4.i686 is a duplicate with glibc-common-2.12-1.107.el6.i686 Installing: vsftpd-2.2.2-11.el6_3.1.i686 1/1 Verifying: vsftpd-2.2.2-11.el6_3.1.i686 1/1 Installed: vsftpd. i686. 2.2-11. el6_3.1 Complete! Verify OK, succeeded

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.