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.
Asked
Active
Viewed 144 times
1
Dane O'Connor
- 235
- 2
- 9
-
Avinash Raj, that reports a number like: `3.11.0.17.16` 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`. – Feb 26 '14 at 17:54
1 Answers
3
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.
Avinash Raj
- 77,204
- 56
- 214
- 254
-
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 01:39
-
Thanks, I used this to answer my similar question: http://askubuntu.com/questions/525217/how-do-i-get-the-real-package-name-and-version-for-a-pseudo-package – Harvey Sep 17 '14 at 20:08