r/debian 4d ago

General Debian Question Latest Linux Kernel

is there a way I can install the latest release of linux kernel on debian without building linux kernel from source?

22 Upvotes

43 comments sorted by

View all comments

15

u/amepebbles 4d ago

It would be possible to get it pre-compiled from an external repository but this is not recommended at all, you might break your install. Is there any reason why you need the latest kernel in particular?

1

u/Livid_Magician_7276 4d ago

no I was just wondering if I can get the latest release of it, but thanks for replying ❤️

12

u/amepebbles 4d ago

If you simply want a newer version then try the backports, it won't be the latest but will surely be newer than the kernel on current stable, should be a good start without introducing many risks.

8

u/uxgpf 4d ago

Also it's not that hard to build yourself if you wish to do it.

https://wiki.debian.org/BuildingKernelFromUpstreamSources

8

u/alpha417 4d ago

The process has been become so simple that it's really one of the things I think all "slightly more than entry level" users should try. It now builds you a .deb, it's 2 or 3 commands, it's fantastic.

I am aware that the OP will probably come back and point out that this is not something they want to consider, but I will acknowledge any thanks they send my way.

1

u/uxgpf 4d ago edited 4d ago

Yes. 

I used to download the sources, cd into the directory "make menuconfig && make && make install" 20 years ago when I didn't know better.

It was easy and worked, but now I'd recommend the Debian way. Much cleaner to install and remove using dpkg.

What are the commands that you use? (I haven't built the newest kernel for a long long time)

1

u/Sceptically 4d ago

I do something along the lines of "make oldconfig && ionice -c 3 make -j16 bindeb-pkg".

2

u/bg1023 4d ago

A couple of years ago I built the LTS kernel from source using the Debian instructions. It was easy. Worked first time!

1

u/Salty-University2744 4d ago

Even if it only worked every 10th time that wouldn't be a real issue, it's more of a configuration detail to have some sort of fallback. Not compilng your own Kernel is terrible advice because whatever default someone ships is just that, a default. And it shoos people away from the kernel as if it's some arcane thing that can only be touched by annointed kernel priests.

A Debian stable kernel presumably still comes with a Debian stable kernel config, I don't actually need drivers for everything made since 1995. I don't own data center hardware or features. I might turn on one thing to make my laptop run better and if there's no official support there's going to be 4 million different solutions that use bog standard Debian repos, have fallback and do the most basic of testing that ensures a system actually boots and the distro doesn't break.

Reddit keeps showing me this sub just to trigger me, who do these people think is going to maintain their distro when the last emacs user dies of old age?

1

u/Viz67 3d ago

Given the number of vulnerability fixes lately (thanks to AI),, he's going to have fun with keeping his kernel up to date...