25 Useful Basic Commands of APT-GET and APT-CACHE for Package Management

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

62 Responses

  1. Sansu says:

    Hi, How can i search through installed applications ? In particular I want to search with a keyword in both package name and description for installed package? apt-cache search --installed keyword does not work.

    • Ravi Saive says:


      You can use the following command to search for a particular packages, for example apache in this case.

      $ sudo apt-cache search apache
      • Sansu says:

        Sorry if I was not clear. I specifically need to look into list of packages that are installed in my system.

        $ apt-cache search apache 

        will list all the packages available but i need only those which are installed in my system.

        • dragonmouth says:

          Instead of using the CLI tool ‘apt-cache’. use the GUI tool, Synaptic. When you search for ‘apache’, Synaptic will display on one screen all packages with ‘apache’ in the name or the description, and whether they are installed or not.

  2. John BR says:

    I work in many places offline (no Internet access). I had to use apt clean to fix a bad installation issue, and don’t know how to download again all the .deb files again, which I used in my installation, since I usually need to reinstall packages that I need from offline places.

    So how do I re-download all .deb files that were installed on my system (official and ppa repositories) ?

    If there a apt-cache –only-download “all-installed” type of command ?

    I am still using trusty 14.04.5 (64 bits) here.

    • Ravi Saive says:


      This following command will download all installed packages to directory /var/cache/apt/archives.

      $ sudo dpkg -l | grep "^ii"| awk ' {print $2} ' | xargs sudo apt-get -y install --reinstall --download-only

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.