• Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training
Sick Codes - Security Research, Hardware & Software Hacking, Consulting, Linux, IoT, Cloud, Embedded, Arch, Tweaks & Tips!
  • Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training
No Result
View All Result
Sick Codes - Security Research, Hardware & Software Hacking, Consulting, Linux, IoT, Cloud, Embedded, Arch, Tweaks & Tips!
  • Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training
No Result
View All Result
Sick Codes - Security Research, Hardware & Software Hacking, Consulting, Linux, IoT, Cloud, Embedded, Arch, Tweaks & Tips!
No Result
View All Result
Home Tutorials

How to Install linux-git on Arch Linux for Testing Upstream Kernels & Release Candidates

by Sick Codes
February 2, 2021
in Tutorials
0
How to install linux git on Arch Linux

How to install linux git on Arch Linux

Select a kernel release candidate from the drop down menu.

Head to https://github.com/torvalds/linux.

Click Tags

For example, 5.11-rc6

Faster build

Here you can make your make’s use much more CPU that just a single core. Thanks @iamazat for the tip:

sudo vi /etc/makepkg.conf

Edit the following line:

MAKEFLAGS=-j$(( $(getconf _NPROCESSORS_ONLN)*2 )) make

Build and install linux-git from source

Use the version from earlier, e.g. 5.11-rc6

RC=5.11-rc6
RC="${RC//\-/}"
cd ~
sudo pacman -Rns linux-git
yay linux-git --getpkgbuild --force
cd ~/linux-git

# remove html docs
sed -i -e 's/\"\$pkgbase-docs\"//' PKGBUILD
sed -i -e 's/rm\ -r\ \"\$builddir\/Documentation\"//' PKGBUILD
sed -i -e 's/make\ htmldocs//' PKGBUILD
# sed -i -e 's/make\ /make\ -j'${N}'\ /g' PKGBUILD
sed -i -e 's/^pkgver\=.*/pkgver\='${RC}'/' PKGBUILD
sed -i -e 's/^pkgver\=.*/pkgver\='${RC}'/' PKGBUILD

# MANUALLY EDIT OUT THE SKIP SHASUMS TO SKIP

sed -i -e s/^sha256sums/old_sha256sums/g PKGBUILD

perl -i -p -e s/old_sha256sums/sha256sums\=\(\'SKIP\'\ \'SKIP\'\)\\nold_sha256sums/g PKGBUILD


# overwrite config with current system config
zcat /proc/config.gz > config

makepkg -si

Fix grub/rEFInd etc.

During boot, press TAB on your boot menu item. Simply add ‘-git’ to your boot options

Next Post

How to Move Docker Directory, Run Docker From Block Storage, Run Docker from External Drive!

Apple Security Program Scope

Is Hackintosh, OSX-KVM, or Docker-OSX legal?

Netmask npm package CVE

CVE-2021-28918 - netmask npm package - Improper Input Validation in netmask npm package v1.1.0 and below of octal literals results in indeterminate SSRF & RFI vulnerabilities.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result
  • Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training

© 2017-2021 Sick.Codes

@sickcodes

@sickcodes

@sickcodes

Discord Server

sickcodes.slack.com

t.me/sickcodeschat

./contact_form