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