Lisi Reisz wrote: > Bob Proulx wrote: > > The newest latest kernel installed is on the bottom. > > Not here. I have the oldest on the bottom. > > lisi@Tux-II:~$ dpkg -S /boot/vmlinuz-* > linux-image-3.16.0-0.bpo.4-amd64: /boot/vmlinuz-3.16.0-0.bpo.4-amd64 > linux-image-3.16-0.bpo.2-amd64: /boot/vmlinuz-3.16-0.bpo.2-amd64 > linux-image-3.16-0.bpo.3-amd64: /boot/vmlinuz-3.16-0.bpo.3-amd64 > linux-image-3.2.0-4-amd64: /boot/vmlinuz-3.2.0-4-amd64 > lisi@Tux-II:~$
I got caught by version sorting lexicographical! Good catch! I had the same two with 3.2 and 3.16 too but didn't see it because for me those were buried in the middle. I guess I could have used the ls --sort=version sort to sort the order first. Just because I am pedantic try this: $ dpkg -S $(ls -v /boot/vmlinuz-*) linux-image-2.6.39-2-amd64: /boot/vmlinuz-2.6.39-2-amd64 linux-image-3.0.0-2-amd64: /boot/vmlinuz-3.0.0-2-amd64 linux-image-3.1.0-1-amd64: /boot/vmlinuz-3.1.0-1-amd64 linux-image-3.2.0-1-amd64: /boot/vmlinuz-3.2.0-1-amd64 linux-image-3.2.0-2-amd64: /boot/vmlinuz-3.2.0-2-amd64 linux-image-3.2.0-3-amd64: /boot/vmlinuz-3.2.0-3-amd64 linux-image-3.2.0-4-amd64: /boot/vmlinuz-3.2.0-4-amd64 linux-image-3.8-2-amd64: /boot/vmlinuz-3.8-2-amd64 linux-image-3.9-1-amd64: /boot/vmlinuz-3.9-1-amd64 linux-image-3.10-1-amd64: /boot/vmlinuz-3.10-1-amd64 linux-image-3.10-2-amd64: /boot/vmlinuz-3.10-2-amd64 linux-image-3.10-3-amd64: /boot/vmlinuz-3.10-3-amd64 linux-image-3.16.0-4-amd64: /boot/vmlinuz-3.16.0-4-amd64 linux-image-4.0.0-1-amd64: /boot/vmlinuz-4.0.0-1-amd64 The docs on ls -v are: ‘-v’ ‘--sort=version’ Sort by version name and number, lowest first. It behaves like a default sort, except that each sequence of decimal digits is treated numerically as an index/version number. :-) Bob
signature.asc
Description: Digital signature