Forrest logo
tool overview
On this page you find all important commands for the CLI tool apt-cache. If the command you are looking for is missing please ask our AI.

apt-cache

apt-cache is a command-line tool used in Debian-based systems, such as Ubuntu, to query the APT package cache. It provides information about available packages and their dependencies. apt-cache allows users to search and display detailed information about packages, including their descriptions, versions, maintainers, and installed sizes. Users can search for packages using keywords and filter the results based on various criteria like package names, descriptions, or package sections.

apt-cache can also show dependencies and reverse dependencies of a particular package, helping users understand the relationships between packages. It allows users to display the available versions of a package and check if a specific version is available in the repository.

The tool's versatility extends to show the changelog of a package, displaying any recent changes made to it. Users can also find packages that provide a particular file or determine which package a specific file belongs to.

apt-cache is a powerful tool used to obtain valuable information about packages in a Linux environment. It assists users in managing packages, resolving dependencies, and making informed decisions when installing or uninstalling software. Its straightforward command-line interface and comprehensive functionality make it a reliable resource for package management in Debian-based systems.

List of commands for apt-cache:

  • apt-cache:tldr:1900b apt-cache: Show packages that depend on a particular package.
    $ apt-cache rdepends ${package}
    try on your machine
    explain this command
  • apt-cache:tldr:755a4 apt-cache: Search for a package in your current sources.
    $ apt-cache search ${query}
    try on your machine
    explain this command
  • apt-cache:tldr:9ec33 apt-cache: Show whether a package is installed and up to date.
    $ apt-cache policy ${package}
    try on your machine
    explain this command
  • apt-cache:tldr:a9de9 apt-cache: Show dependencies for a package.
    $ apt-cache depends ${package}
    try on your machine
    explain this command
  • apt-cache:tldr:f569b apt-cache: Show information about a package.
    $ apt-cache show ${package}
    try on your machine
    explain this command
tool overview