0

I'm running Manjaro (Derived from Arch). I have a .deb file for kernel 4.0. Is it possible to install the kernel from this file, and what are the steps involved?

I tried opening the .deb file and from the look of it I might just be able to copy the kernel files to the corresponding directories and just do an update-grub to get it running. Will that work?

P.S. I'm new to Manjaro, but mostly fluent in Linux.

  • It almost certainly *won't* because those dependencies that are keeping you from installing it with `dpkg` are there for a *reason*. You may very well be lacking critically important software it needs. – Shadur Apr 25 '17 at 18:01
  • Don't use debian packages on archlinux. If you want a custom kernel for your arch distrib, look at https://wiki.archlinux.org/index.php/Kernels/Arch_Build_System – Shadur Apr 26 '17 at 06:47

1 Answers1

1

You can Install a .deb completely 'by hand' but in this case I would recommend against that approach: the kernel packages rely on a certain amount of infrastructure to build the appropriate initrd for your system, and I think it would be very difficult to get it working manually...

If you really want kernel 4.0 and can't wait for the appropriate AUR, you'd be better off building a kernel from the upstream source code.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
  • Thank you for the quick response. Just before seeing your answer I had tried to manually extract all the files to relevant directories. Made the initrd. It booted to a rescue prompt. :) As you suggested I'll try compiling from source. Thanks again :) – Kenny John Jacob Apr 23 '15 at 04:54
  • Look for a software package called `kernel-package` then run `make-kpkg` in an existing linux kernel source tree. – Shadur Apr 25 '17 at 18:01
  • @Shadur not on Arch Linux... – Stephen Kitt Apr 25 '17 at 20:33
  • ... Archlinux doesn't *use* debian packages to begin with. Use the actual package manager and actual packages meant to go with it. – Shadur Apr 26 '17 at 06:46
  • @Shadur exactly, which is why I don’t understand why you’re suggesting looking for `kernel-package` and running `make-kpkg`. – Stephen Kitt Apr 26 '17 at 07:38
  • Because you mentioned "deb" more explicitly than you did "archlinux" and I assumed that that means that the distribution you were using actually *uses* .deb. Because trying to install a kernel deb on a system that doesn't even use debs would be **stupid**. – Shadur Apr 26 '17 at 07:39
  • @Shadur please read my answer a little more carefully: “I would recommend against that approach”, “If you really want kernel 4.0 and can't wait for the appropriate AUR”. I’m not trying to explain how to proceed on Debian. You should tell the OP that he is stupid, shouldn’t you? But that’s not how we go about things around here (which I would imagine you know, given your rep). – Stephen Kitt Apr 26 '17 at 07:43