How to Use apt-cache Command in Debian, Ubuntu and Other Linux Distributions

With apt-cache command you can search for package details in the local APT cache. Learn to use apt-cache command in this tutorial.

The apt package manager works on a local cache of package metadata. The metadata usually consists information like package name version description dependencies its repository and developers. With the apt-cache command you can query this local APT cache and get relevant information.

You can search for the availability of a package its version number its dependencies among other things. I8217ll show you how to use the apt-cache command with examples.

The location of APT cache is varlibaptlists directory. Which repository metadata to cache depends on the repositories added in your source list in the etcaptsources.list file and additional repository files located in ls etcaptsources.list.d directory.

Needless to say the APT packaging system is used on Debian and Debian-based Linux distributions like Ubuntu Linux Mint elementary OS etc. You cannot use it on Arch or Fedora.

...

Read Full Post

News Link: https://itsfoss.com/apt-cache-command/.
RSS Link: https://itsfoss.com/feed/.

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.