I'm connected via SSH to a PC running Linux kernel 3.11.1:root@alix:~# uname -r3.11.1how can I find out which package installed this specific file or kernel version respectively?I triedroot@alix:/boot# dpkg -S vmlinuz-3.11.1 dpkg-query: no path found matching pattern *vmlinuz-3.11.1*Other installed kernel versions can be found with dpkg -S:root@alix:/boot# dpkg -S vmlinuz-3.2.23linux-image-3.2.23-ath5kmod: /boot/vmlinuz-3.2.23-ath5kmodMy purpose: I would like to install the corresponding Linux headers for version 3.11.1 to compile a kernel module for it. apt-cache search linux-headers lists 15 different header versions but not that one for 3.11.1.Thank you very much.
Debian: get package name for installed file
debian;kernel;dpkg;header file
You can list every installed package with dpkg -l and filter through the results with grep for the kernel packagesdpkg -l | grep 'linux-image'dpkg -l | grep 'linux-image' | grep '3.11'To find the kernel headers package for your running kernel:apt-cache search linux-headers-`uname -r`