Ask Your Question

how get kernel sources ?

asked 2014-03-18 05:08:27 -0500

medioem27 gravatar image

updated 2014-09-29 01:17:40 -0500

mether gravatar image

how can I get the sources ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-18 05:29:55 -0500

cobra gravatar image

updated 2014-03-18 05:30:46 -0500

There is a yum repository for source packages. If you turn it on, you should see source code packages appear in your package manager.

Take a look inside the file /etc/yum.repos.d/fedora.repo, at the bottom you should see a repository named [fedora-source] which is turned off (enabled=0).

You can turn it on temporarily from the command line, or you could edit that file and set 'enabled=1'. You also get some control over it with package managers such as 'yumex'.

edit flag offensive delete link more



@medioem27: Alternatively you can use yumdownloader --source kernel, which will download the SRPM from the *source repo, this works even if the repo is disabled (enabled=0) without having to re-enable it. The SRPM is useful if you plan to compile the kernel from source.

(If however you just want to compile a 3rd party kernel module and it requires the "kernel source" or "kernel headers" you only need to install the kernel-devel package matching your running kernel).

Ahmad Samir gravatar imageAhmad Samir ( 2014-03-21 10:06:34 -0500 )edit

Question Tools


Asked: 2014-03-18 05:08:27 -0500

Seen: 258 times

Last updated: Mar 18 '14