1, upload the ISO image of RHEL6.5 to the RHEL6.5 server 2, Mount ISO image normally mount the image file under/mnt/iso, so first create the Mount folder: # Mkdir/mnt/iso Mount (I put the Rhel image uploaded in the/home/ Soft folder): Mount-o LOOP/HOME/SOFT/RHEL-SERVER-6.5-X86_64-DVD.ISO/MNT/ISO3, perform local yum configuration backup file under/etc/yum.repos.d/: # mkdir/etc/yum.repos.d/backup# mv/etc/yum.repos.d/rh*/etc/yum.repos.d/backup/Create a new repo file under/etc/yum.repos.d/, Repo name, but must end with. Repo, and configure the following: # Vi/etc/yum.repos.d/rhel-iso.repo under VI, write the following in the Rhel-iso.repo: [Base]name=iso # #仓库描述baseurl =file:///mnt/iso # #镜像挂载位置enabled =1 # #是否启用gpgcheck =0 # # #1为检查0为不检查gpgkey =file:///etc/pki/rpm-gpg/rpm- gpg-key-RedHat-release# #签名密钥4, clears the Yum cache, and tests whether the configuration successfully clears the cache: # Yum clean all test is configured successfully: # Yum install httpd
ISO image of intranet RHEL6.5 upload to RHEL6.5 server make local installation dependency source