Skip to content

Instantly share code, notes, and snippets.

@gaviriar
Created June 20, 2018 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaviriar/0394b4923b440f94eb43003cb8762623 to your computer and use it in GitHub Desktop.
Save gaviriar/0394b4923b440f94eb43003cb8762623 to your computer and use it in GitHub Desktop.
Bash script to dump the full reverse dependency tree of of a list of specified debian packages
#!/bin/bash
# Bash script to dump the full recursive list of reverse
# dependencies of a list of debian packages
#
# Useful when trynig to identify dependency conflicts in your machine
# so you can check the output on your machine to the output of another machine
# which does not have this problem.
# declare an array holding dependencies to dump
# USER! change this list to your desire
declare -a deps=(libdbusmenu-glib-dev libdbus-glib-1-dev libappindicator1 gir1.2-appindicator3-0.1 libdbusmenu-glib-dev libdbus-glib-1-dev libappindicator3-1 libbrlapi0.6 libgbm1 libgtk-3-0 gir1.2-gtk-3.0 libepoxy-dev libgtk2.0-0 krb5-multidev libpci3 libpulse0 libpulse-mainloop-glib0)
mkdir -p apt-rdepends;
for a in "${deps[@]}";
do apt-rdepends -r $a > apt-rdepends/$a.txt;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment