Latest version: 1.1.0

The latest version of pacdep can be downloaded here. For Arch Linux users, the AUR has a PKGBUILD.

You can find the source code on this GitHub, where you can also report bugs, send suggestions or other (constructive) feedback.

What is pacdep ?

pacdep is a small tool that will allow you to quickly see how much space is being used/required by a package (and its dependencies).

By default, it will give the installed size of the package, its exclusive dependencies, and its shared dependencies; Optional dependencies can be included as well.

pacdep searches the local database first, and if not found searches all sync databases. Package names are prefixed by the repository name they were found in when they're not from the local database.

You can have dependencies of a group listed, in which case the packages name and installed size will be shown. You can also show the "dependency path" for each package, using --show-path

Package size

After the package's installed size, in parenthesis will be the installed size of the package and its exclusive (and optional, if --show-optional was used) dependencies.

If the package is from local database (i.e. is installed), only dependencies from local databases are taken into account If it is from a sync database (i.e. is not installed), only dependencies from sync databases are taken into account.

In other words, this size represents either the size the package and its dependencies are using on the system (size that could potentially be freed if removing the package and its dependencies), or the size needed to install them.

Reverse mode

When option --reverse is used, instead of listing the dependencies of the specified packages, pacdep will list packages that require them (i.e. the dependency tree is browsed in reverse).

By default only immediate "requirers" are listed, i.e. packages that have one of the specified packages as dependency.

Specifying the option a second time will go through the entire dependency tree, until a package that isn't required is found. All packages met will be listed.

Specifying the option a third time will go through the dependency tree all the same, but only the end packages (that aren't required) will be listed.

Optional Requirements

Just like in "regular" mode, you can have optional dependencies taken into account as well.

Instead of listing optional dependencies, you can list packages that have one of the specified packages as optional dependency.

Read more about pacdep

You can check out the following blog posts, or head over this topic on Arch Forums.

Top of Page