• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

apt-cache Command Examples

by admin

The apt-cache command is a utility provided by the Advanced Packaging Tool (APT) system, which is used to manage software packages on Ubuntu and other Debian-based Linux distributions. It allows you to search for and list the available packages in the APT package repository, as well as show information about a specific package.

For example, you can use the apt-cache search command to search for a package that provides a particular utility or library, like this:

# apt-cache search nginx

This will list all the packages that match the search term “nginx”. To show information about a specific package, you can use the apt-cache show command, like this:

# apt-cache show nginx

This will display detailed information about the nginx package, such as its version, dependencies, and the files it installs.

apt-cache Command Examples

1. Search for a package in your current sources:

# apt-cache search {{query}}

2. Show information about a package:

# apt-cache show {{package}}

3. Show whether a package is installed and up to date:

# apt-cache policy {{package}}

4. Show dependencies for a package:

# apt-cache depends {{package}}

5. Show packages that depend on a particular package:

# apt-cache rdepends {{package}}

Filed Under: Linux

Some more articles you might also be interested in …

  1. gbp Command Examples in Linux
  2. bc: An arbitrary precision calculator language (Command Examples)
  3. pacman-mirrors Command Examples in Linux
  4. CentOS / RHEL : How to create a Thinly Provisioned Logical Volume
  5. grub-install Command Examples in Linux
  6. clockwork-cli: A command-line interface for the Clockwork PHP debugging framework
  7. How to Kill VNC Window Sessions in Linux
  8. git delete-branch: Delete local and remote Git branches
  9. pkcon: command not found
  10. wg Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright