Print a list of installed packages that depend on a given package.
- Clone this repository (
git clone https://github.com/Fishezzz/apt-dependencies.git
) or download the zip and unzip it in your home folder.
For system-wide install:
-
Place the apt-dependencies folder in the
/opt
folder:sudo mv ~/apt-dependencies /opt/
-
Make apt-dependencies executable:
sudo chmod a+x /opt/apt-dependencies/apt-dependencies
-
Create a symbolic link:
sudo ln -s /opt/apt-dependencies/apt-dependencies /usr/local/bin/
For user install:
-
Place the apt-dependencies folder in the
~/.local/share/
folder:mv ~/apt-dependencies ~/.local/share/
-
Make apt-dependencies executable:
chmod a+x ~/.local/share/apt-dependencies/apt-dependencies
-
Create a symbolic link:
ln -s ~/.local/share/apt-dependencies/apt-dependencies ~/.local/bin/
apt-dependencies [OPTIONS] [--] <package>
-
-h
,--help
display this help and exit
-
--
everything after this will be treated as a list of packages.
The <package>
argument will be treated as a single package. Valid regexp can
be used as well but should be between quotes. When multiple packages are
provided without using --
only the last package will be used.
When --
is provided, multiple packages or regexps can be provided, when
seperated by spaces and quoted when needed. This will override any package
provided before the --
.
When multiple packages are provided, packages that depend on ANY of the provided packages will be returned. Dependencies can occur multiple times when providing multiple packages.