Technology Inside Out!

Index ¦ Archives ¦ Atom ¦ RSS

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 :

sudo apt-cache stats

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 :

sudo apt-cache pkgnames

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 :

sudo apt-cache show <package_name>

Example :

sudo apt-cache show minitube

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 :

sudo apt-cache search <word_close_to_package_you're_searching_for>

Example :

sudo apt-cache search mini

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 :

sudo apt-cache showpkg <package_name>

Example :

sudo apt-cache showpkg vlc

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.

© The Geeky Way. Built using Pelican. Theme by Giulio Fidente on github.

Disclaimer Privacy policy