root@tinello:~# apt-get --purge remove linux-headers-2.6.18-5-k7
[...]
Do you want to continue [Y/n]? y
(Reading database ... 91239 files and directories currently installed.)
Removing linux-headers-2.6.18-5-k7 ...
dpkg - warning: while removing linux-headers-2.6.18-5-k7, directory
`/lib/modules/2.6.18-5-k7' not empty so not removed.
root@tinello:~# ls -l /lib/modules/2.6.18-5-k7
totale 0
lrwxrwxrwx 1 root root 34 2007-12-23 21:29 build.save -> /usr/src/linux-headers-2.6.18-5-k7
root@tinello:~# ls -l /usr/src
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-k7
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Versions of packages linux-headers-2.6.18-5-k7 depends on:
ii gcc-4.1 4.1.1-21 The GNU C compiler
ii linux-headers-2.6.18-5 2.6.18.dfsg.1-17 Common header files for Linux 2.6.
ii linux-kbuild-2.6.18 2.6.18-1 Kbuild infrastructure for Linux 2.