Tuesday, June 20, 2017

HOWTO: Creating a Local Yum Repository Using an ISO Image on CentOS 7.0


  1. Create a mount point, for example /mnt/CentOS

  2.  [ ]# mount -o loop CentOS-7-x86_64-Everything-1611.iso/mnt/CentOS

  3. In the /etc/yum.repos.d directory, add and edit the repository files, such as CentOS-ISO.repo
  4. [c7-iso]
    name=CentOS-$releasever - ISO
    baseurl=file:///mnt/CentOS/
    gpgcheck=0
    enabled=1

  5. Clean up the yum cache

  6.  [ ]# sudo yum clean all

  7. Install RPM package

  8.  [ ]# sudo yum --disablerepo=\* --enablerepo=c7-iso install "package name"
    Install the 32-bit C library:
     [ ]# sudo yum --disablerepo=\* --enablerepo=c7-iso install glibc.i686

No comments: