With the following command, I can list all the installed kernel package:
$ dpkg -l | grep linux-image
With the following command, I get for instance the version of the current kernel used:
$ uname -r
However, my needs is to just display in a terminal, the Debian package name corresponding of the current loaded kernel.
As multiples packages names can have the same version, it is difficult to identify uniquely a particular kernel with the previous commands.
So… Do you have an idea to get the package name of the current kernel ?
Best Answer
Use this:
or
EDIT: If you have multiple versions of the same kernel release, run the following
bash
script: