How do I determine the kernel version that a package like linux-image-generic-lts-saucy will install? Basically I'd like to get what uname -r would report before I actually install this kernel so I can automate the configuration of grub.

  • Avinash Raj, that reports a number like: is that equivalent to 3.11.0-17-generic? – Dane O'Connor Feb 26 '14 at 17:37
  • AvinashRaj you should submit as answer then – Dane O'Connor Feb 26 '14 at 17:38
  • Your question doesn't make sense because everything depends on the OS release not the kernel version. In your case Ubuntu Saucy. – user224465 Feb 26 '14 at 17:54

Run the below command on terminal,

apt-cache policy linux-image-generic-lts-saucy

It will show the linux-image-generic-lts-saucypackage along with it's version and some other details.

  • I think a cleaner way would be to simply look at the actual image package on which the dummy package depends i.e. apt-cache depends linux-image-generic-lts-saucy – steeldriver Feb 27 '14 at 1:39
  • Thanks, I used this to answer my similar question: askubuntu.com/questions/525217/… – Harvey Sep 17 '14 at 20:08

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.