How to install package on Airgap Fedora IOT with rpm-ostree

I have installed Fedora IOT 38 on an offline server and I’m attempting to install an RPM package. However, I’m encountering the following error:

# rpm-ostree install k3s-selinux-1.4-1.coreos.noarch.rpm
Checking out tree 5dcb22f... done
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora
Updating metadata for 'fedora-cisco-openh264'... done
error: Updating rpm-md repo 'fedora-cisco-openh264': cannot update repo 'fedora-cisco-openh264': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-38&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]; Last error: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-38&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]

Any hint to bypass this error.

You can probably disable the repos manually in /etc/yum.repos.d.

Something like:

sed -i "s/enabled=1/enabled=0" /etc/yum.repos.d/*.repo
2 Likes

@siosm Thank you very much for your assistance. The solution you provided works excellently. I was attempting to create a local repository, but your provided solution is concise and effective.