1 Reply Latest reply on Mar 8, 2018 8:26 AM by gowatana

    Internal tdnf / yum repository server ?

    hchchchc Novice

      hi,

       

      is there an easy way to create an internal repository server for tdnf ?

       

      i don't want to give internet access to all the photon vm's.

       

      i appreciate your help.

       

      thanks in advance, chris

        • 1. Re: Internal tdnf / yum repository server ?
          gowatana Master
          User ModeratorsvExpert

          hi,

           

          You can use ISO file and the default photon-iso.repo file.

           

          1) mount ISO file to /mnt/cdrom directory.

          # cat /etc/photon-release

          VMware Photon OS 2.0

          PHOTON_BUILD_NUMBER=304b817

          # mount -o loop photon-2.0-304b817.iso /mnt/cdrom/

          mount: /dev/sr0 is write-protected, mounting read-only

          # ls /mnt/cdrom/

          boot  isolinux  PHOTON_VMWARE_CD  RPMS

           

          2) enable photon-iso repo.

          # sed -i "s/^enabled=.*/enabled=1/" /etc/yum.repos.d/photon-iso.repo

          # cat /etc/yum.repos.d/photon-iso.repo

          [photon-iso]

          name=VMWare Photon Linux ISO 2.0(x86_64)

          baseurl=file:///mnt/cdrom/RPMS

          gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY

          gpgcheck=1

          enabled=1

          skip_if_unavailable=True

           

          3) try tdnf install ~, or yum install ~.

           

           

          maybe, I think the following document will be helpful.

          photon/photon-admin-guide.md at master · vmware/photon · GitHub