Learn To Manage Packages Using APT-GET & APT-CACHE Commands In Ubuntu/Debian. Part-3

This is last & final chapter of this tutorial. Before proceeding further, I would like to link first two parts here just incase you haven’t checked it out.

(PART-1  &  PART-2)


Continuing from Part-2,

19) Checking The Stats Of Cache Using APT-CACHE :

This command will display all the statistics of the cache, from total number of packages to total number of dependencies, total number of globbed strings, slack space ,etc.

Command :


20) Listing All The Packages Available In The Repository Using APT-CACHE :

Using this command you can list all the packages that are available in the repository.

Command :


21) Checking The Package Details Using APT-CACHE :

This command will give you details of any package available in the repository, alongwith maintainer’s name, description details, size, dependency, architecture,etc.

Command Syntax :

Example :


22) Searching The Package Using APT-CACHE :

You can find the package name alongwith description using the following command syntax. Very handy tool when you’re looking for similar name of packages.

Command Syntax :

Example :

You’ll see that first results of search will give me all packages name with prefix ‘mini’. This can be helpful when you don’t know correct package name.


23) Getting Dependency Details Using APT-CACHE :

You can easily obtain dependency details using following command. It also gives details whether those packages are already installed in your system or not.

Command Syntax :

Example :



There are chances that I might’ve missed few commands. You can suggest some of commands in the comments below, so I can add it.

However, you can get more details of apt-get & apt-cache by typing “man apt-get” & “man apt-cache” respectively from Debian/Ubuntu system.

Leave a Reply

Your email address will not be published. Required fields are marked *