You are not logged in.

#1 2012-07-18 04:24:58

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

[solved]kernel source

I do apologize - but where the heck do I find the kernel source that's being used by archlinux??
I used to roll my own sources frequently, but ever since discovering arch - I'm more than  happy to use the default ...

I keep a local mirror of the official one - but I'm darned if I can see any kernel sources there :-(
This time I do need to roll my own - a 'dell precision m90' does not cater for backlight (.../drivers/acpi/video.c), so I need the patched version.
Could anyone plueeze enlighten me? (and yes, I _have_ checked /usr/src/linux-3.4.4-3-ARCH/ - no source there ...)

Last edited by perbh (2012-07-18 13:43:04)

Offline

#2 2012-07-18 04:30:11

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [solved]kernel source

You can get the PKGBUILD and local source files from here. You can find other packages by following the "Packages" link at the top of the page.

Once you have those, just run "makepkg -o" to download and extract the upstream sources. You will then have everything (sources + patches).

You can use pbget to automatically retrieve PKGBUILDs for packages too.

edit:
If you mean the headers, then check the following packages:
linux-api-headers
linux-headers

Last edited by Xyne (2012-07-18 04:32:29)


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#3 2012-07-18 04:30:38

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [solved]kernel source

Install and run abs.
The PKGBUILD and install files will be found at /var/abs/core/linux
Copy that directory to where you can work with it.  When you run makepkg in that directory, it will grab the source from Kernel.org.

Edit: Drat, snaked by Xyne sad  Less than a minute too..

Last edited by ewaller (2012-07-18 04:31:46)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2012-07-18 04:32:12

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [solved]kernel source

thanks guys - appreciated!!

Offline

#5 2017-09-26 20:37:05

gbastien
Member
Registered: 2017-09-26
Posts: 1

Re: [solved]kernel source

Once in a while I need the kernel source and always come back to this thread. So I'll update...

The abs package is now deprecated (https://www.archlinux.org/news/deprecation-of-abs/)

We can use aps instead. cd to some working directory, then  aps export linux
Then cd linux and run makepkg to download the sources

Offline

#6 2017-09-26 20:47:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved]kernel source

Don't necrobump, especially with information that is documented on the wiki: https://wiki.archlinux.org/index.php/Co … bumping.22



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB