Skip to content

How to install -dbg packages for dependencies?

To debug a ksynaptics crash, I need to install -dbg packages for all dependencies of ksynaptics.

We do not have a tool for automatically doing so, right?

If I am right, the following scriptlet seems to do the trick.


set -e


for package in $PARENT $(debfoster -d $PARENT | tail -n +2); do
  for source in $(grep-available --no-field-names --field=Package $package --show-field Source); do
      DBGPACKAGES="$DBGPACKAGES $(grep-available --no-field-names --field=Source $source --show-field Package | grep -- '-dbg$' || true )"


Just in case the combination of this blog software and your browser tries to do smart things with the quotes, pull the script from

I am open for suggestions.


No Trackbacks


Display comments as Linear | Threaded

BRIGHT A .U on :

I want to know how to partition and format a hard-disk in computer system.

The author does not allow comments to this entry

Add Comment

Markdown format allowed
Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
Form options