How to downgrade a package using dnf without internet access?

I can’t connect to wifi because of the new iwl7260-firmware-* not working for me.

I was able to get the rpms for a working version of the iwl7260-firmware.

I tried using

dnf downgrade ./iwl7260-firmware-25.30.13.0-97.fc30.noarch.rpm

but results in an error with the following message
Failed to download metadata for repo 'fedora-modular'
Error: Failed to download metadata for repo 'fedora-modular'

I have already downloaded the necessary rpms, but unable to downgrade it.

1 Like

You can do

sudo dnf install /path-to/downloaded-package.rpm

If that doesn’t work, add a --disablerepo=* to the command so metadata isn’t fetched from the servers.

3 Likes

An alternate option would be:

rpm -Uvh --force ./iwl7260-firmware-25.30.13.0-97.fc30.noarch.rpm

2 Likes