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

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.