Glam Prestige Journal

Bright entertainment trends with youth appeal.

I am trying to modify this debian source package which requires the the user to manually install the current Linux kernel's header (with sudo apt install linux-headers-$(uname -r) before installing droidcam.

However, can this be automated using the debian/control file or the postinst script, so that the user does not have to manually install it?

1

1 Answer

Well, this is not a complete solution. It does not cover if the user want keep an older kernel.

Instead of headers only

Depends: ${misc:Depends}, build-essential, linux-headers-generic | linux-headers-generic-pae | linux-headers-lowlatency | linux-headers-lowlatency-pae

Put kernel & headers as requirement

Depends: ${misc:Depends}, build-essential, linux-generic | linux-generic-pae | linux-lowlatency | linux-lowlatency-pae

So this way:

  • If the kernel is last version, it will install its headers.
  • If the kernel is old version, it will install both the last version kernel with its headers.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy