Forrest logo
back to the pacman tool

pacman-database:tldr:1979f

pacman-database: Check that all the package dependencies are installed.
$ pacman --database --check
try on your machine

The pacman --database --check command is used in Arch Linux and its derivatives to check the consistency and integrity of the local package database.

Here's how the different components of the command work:

  • pacman is the package manager used in Arch Linux systems.
  • --database is an option that tells pacman to operate on the package database rather than performing any package installation or removal.
  • --check is another option that specifies the action to be performed, which in this case is to check the database.

When you run this command, pacman will iterate through all the installed packages in the local database and compare their actual file system states with the recorded states in the database. It will verify if the packages are correctly installed, if all the files are present, and if any files have been modified or removed since installation.

This helps identify any inconsistencies or corruption in the package database, allowing you to take appropriate actions like reinstalling or removing problematic packages. Running pacman --database --check regularly is recommended to ensure the system's package database is in a healthy state.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pacman tool