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

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...

58 Responses

  1. 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.