4

How to downgrade to a specific package version not available with plain dnf downgrade <package>?


For example, the Linux kernel my Fedora 23 came out with (kernel-4.6.4-201.fc23.i686) must be downgraded to a specific version 4.4.9, for some project-specific reason.

How can I downgrade (using dnf) the kernel package to kernel-4.4.9-300.fc23.i686?


The problem is this command:

$ dnf downgrade kernel

only proposes to install kernel version kernel-4.2.3-201.fc23.i686, which is not the version I want.

The packages I need can be found for example on the koji website:

http://koji.fedoraproject.org/koji/buildinfo?buildID=760145

but I don't know how to request a dnf install from there.

How can I do that?

1 Answer 1

4

Just apply dnf downgrade to RPMs that you downloaded yourself.

In your example, in case of the kernel packages, download the RPMs you want from Koji and install them using dnf downgrade:

cd /tmp/
mkdir kernel/
cd kernel/
wget https://kojipkgs.fedoraproject.org//packages/kernel/4.4.9/300.fc23/i686/kernel-4.4.9-300.fc23.i686.rpm
[... and the other packages you need to downgrade ...]
dnf downgrade *.rpm

Not all package versions are available in the mirrors.

2
  • dnf downgrade package.rpm worked like a charm. Thanks a lot!
    – Bludzee
    Jul 26, 2016 at 15:33
  • 2
    If you get Error: conflicting requests you need to increase the installonly_limit value on /etc/dnf/dnf.conf. Apr 24, 2017 at 16:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.