In Linux Mint 21 system, you can display these dependencies with the help of different command-line tools. This guide is about getting dependencies of a package in Linux Mint 21:
How to get Dependencies of a Package on Linux Mint 21
There are several command-line tools offered by Linux systems to show package dependencies. Let’s check one by one:
1: Check Dependencies Using apt-cache Command
The apt-cache command-line utility is used to display dependencies with limited details. Follow the mentioned syntax to use apt-cache command:
Run the command on terminal to get better understanding:
2: Check Dependencies Using showpkg Command
The showpkg command-line tool is used to print all relative dependencies whether they are installed in the system or not. Use the mentioned syntax for this command:
For example, to get dependencies details regarding VLC, type in terminal:
3: Check Dependencies Using dpkg Command
The dpkg command works when you have the .deb file. To get package dependencies using dpkg, what you need to do is run this command with installed .deb file path like mentioned in the syntax:
For example:
4: Check Dependencies Using apt-rdepends Command
There is also a tool which is not pre-installed on Linux Mint 21 system named apt-rdepends. Through using this tool, you can display all application dependencies on terminal:
To get it, install it first using the given command:
Now, execute with the help of the following syntax to list down package dependencies on the system:
To explain this, let’s find Java dependencies by making use of apt-rdepends command:
5: Check Dependencies Using apt-show Command
Another way to get dependencies details of a specific tool or application is using the apt-show command. This would be done through the following syntax:
Now, execute this on the terminal to get a better understanding:
Conclusion
When we install a system, some of the additional packages are also installed with them to let the software function properly. And there might be a case that these are already installed in a system.
This article has focused on how to get dependencies of a specific application on the Linux Mint 21 system. We have got various command-line tools like apt-show, apt-rdepends, showpkg, apt-cache and dpkg. This article has worked on each mentioned command with examples.