Feedback

type to search

How to get list of all available -dbg packages for installed libraries?

Asked by [ Editor ]

I’m trying to get useful gdb backtrace and I’d like to install (or get list of) all available -dbg packages for libraries that I have on my system.
Is there an easy way to do this?

or Cancel

2 answers

0

hadret [ Moderator ]

I would try with something like that:

for i in `dpkg -l | grep ii | awk '{print $2}' | grep "^lib" | cut -d":" -f1` ; do apt-cache search $i dbg ; done
NN comments
onlyjob
-

Thanks, but this script

  misses many packages
 
too slow
  produce output not suitable for copy-pasting to apt-get

There are many patterns that we should recognise in order to guess -dbg package name:

    foo
    libfoo
    libfooN
    libfoo-N
    libfoo-bin

Also search pattern should not be too restrictive to avoid missing packages that provide symbols in “foo-dbg” for “libfoo
” packages.

Perhaps there might be more accurate way to find -dbg packages using grep-dctrl…

or Cancel

Your answer

You need to join Debian to complete this action, click here to do so.