Originally Posted by
Paddy Landau
Are you perhaps remembering dpkg and dpkg-query? They allow wildcards. Remember to quote the query string. For example:
Code:
dpkg-query --list 'libc6*'
Reading the dpkg man pages led me to using this:
dpkg --list | grep <partial-package-name>, eg:
Code:
lance@lance-desktop:~$ ls /boot
config-5.4.0-62-generic memtest86+.elf
config-5.4.0-64-generic memtest86+_multiboot.bin
grub System.map-5.4.0-62-generic
initrd.img System.map-5.4.0-64-generic
initrd.img-5.4.0-62-generic vmlinuz
initrd.img-5.4.0-64-generic vmlinuz-5.4.0-62-generic
initrd.img.old vmlinuz-5.4.0-64-generic
memtest86+.bin vmlinuz.old
lance@lance-desktop:~$ dpkg --list | grep 5.4.0-62
ii linux-headers-5.4.0-62 5.4.0-62.70 all Header files related to Linux kernel version 5.4.0
ii linux-headers-5.4.0-62-generic 5.4.0-62.70 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii linux-image-5.4.0-62-generic 5.4.0-62.70 amd64 Signed kernel image generic
ii linux-modules-5.4.0-62-generic 5.4.0-62.70 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii linux-modules-extra-5.4.0-62-generic 5.4.0-62.70 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
It's not a one-size-fits-all approach but dpkg does get the job done if you're willing to study the man pages, and it does so without the need of installing additional packages.
Bookmarks