DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I would use aptitude since it's my tool of choice..
Each line that begins with i is an installed package.
Code:
it-etch:/# aptitude search linux-image
v linux-image -
v linux-image-2.6 -
p linux-image-2.6-486 - Linux 2.6 image on x86
p linux-image-2.6-686 - Linux 2.6 image on PPro/Celeron/PII/PIII/P4
p linux-image-2.6-686-bigmem - Linux 2.6 image on PPro/Celeron/PII/PIII/P4
p linux-image-2.6-amd64 - Linux 2.6 image on AMD64
p linux-image-2.6-k7 - Linux 2.6 image on AMD K7 - transition package
p linux-image-2.6-xen-686 - Linux 2.6 image on i686
i linux-image-2.6.18-6-686 - Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4
p linux-image-2.6.22-3-486 - Linux 2.6.22 image on x86
p linux-image-2.6.22-3-686 - Linux 2.6.22 image on PPro/Celeron/PII/PIII/P4
p linux-image-2.6.22-3-686-bigmem - Linux 2.6.22 image on PPro/Celeron/PII/PIII/P4
p linux-image-2.6.22-3-amd64 - Linux 2.6.22 image on AMD64
p linux-image-2.6.22-3-k7 - Linux 2.6.22 image on AMD K7
p linux-image-2.6.22-3-vserver-686 - Linux 2.6.22 image on PPro/Celeron/PII/PIII/P4
p linux-image-2.6.22-3-vserver-k7 - Linux 2.6.22 image on AMD K7
p linux-image-2.6.24-1-486 - Linux 2.6.24 image on x86
i linux-image-2.6.24-1-686 - Linux 2.6.24 image on PPro/Celeron/PII/PIII/P4
p linux-image-2.6.24-1-686-bigmem - Linux 2.6.24 image on PPro/Celeron/PII/PIII/P4
p linux-image-2.6.24-1-amd64 - Linux 2.6.24 image on AMD64
p linux-image-2.6.24-1-xen-686 - Linux 2.6.24 image on i686
i linux-image-2.6.25-2-686 - Linux 2.6.25 image on PPro/Celeron/PII/PIII/P4
p linux-image-486 - Linux image on x86
p linux-image-686 - Linux image on PPro/Celeron/PII/PIII/P4
p linux-image-686-bigmem - Linux image on PPro/Celeron/PII/PIII/P4
p linux-image-amd64 - Linux image on AMD64
p linux-image-k7 - Linux image on AMD K7 - transition package
p linux-image-xen-686 - Linux image on i686
although the solution provided to you is a much cleaner output..
tunafish:~# dpkg -l | grep "linux-image"
ii linux-image-2.6.22-3-686-bigmem 2.6.22-6.lenny1 Linux 2.6.22 image on PPro/Celeron/PII/PIII/P4
ii linux-image-2.6.24-1-686-bigmem 2.6.24-7 Linux 2.6.24 image on PPro/Celeron/PII/PIII/P4
Those are the (current) versions of the linux-source packages for 2.6.22 and 2.6.24. I suspect a recent update to apt is why they're appearing there, I'm getting similar output when I run that command (and apt was among a bunch of updates I installed earlier today). Is the 2.6.24-1 linux-image package built from the 2.6.24-7 source package?
That searches for the phrase linux-image and restricts the results to installed pacakges.
For more minimal output,
Code:
aptitude search "~nlinux-image ~i" -F %p
The -F flag allows you to control the format of the output, and %p says "package name." So that tells Aptitude to run the same search, but only show the name of the installed packages.
The first is the package name the second is something like the build version which will change as security updates are added.. sorry I don't know the proper terminology but that's why the version number is different/higher.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.