Ask Your Question

download package for different kernel

asked 2015-12-18 21:31:09 -0500

hatlot gravatar image

I'm on a Fedora 23 machine and I'm trying to download a package for an offline install in a Fedora 22 machine. I'm trying to get the package kernel-headers.

The machine I want to do the offline install on (Fedora 22) is running kernel 4.2.6-200.fc22.x86_64. It doesn't currently have internet access so it can't be updated.

I have tried searching for the right package like this:

dnf --showduplicates list kernel-headers

but it only shows me these available packages:

Available Packages
kernel-headers.x86_64                  4.2.3-300.fc23                   fedora  
kernel-headers.x86_64                  4.2.6-301.fc23                   @updates
kernel-headers.x86_64                  4.2.6-301.fc23                   updates

All of them end in .fc23 and none of them are for version 4.2.6-200. I have also tried other methods of searching but have not been successful.

Could anyone show me the command to download the package I'm looking for?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-19 11:33:20 -0500

Try this command line :

sudo dnf --releasever=22 --repofrompath temp-f22-repo, --disablerepo=* --enablerepo=temp-f22-repo download <package>

and the <package>fc22.x86_64.rpm will be downloaded on your current folder. (replace download by --showduplicates list as you did to see the package list)

Another way is simply to open the page in your browser and click on the packages you want to download.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-12-18 21:31:09 -0500

Seen: 565 times

Last updated: Dec 19 '15