The pacman command is used on Arch Linux and its derivatives to manage packages. The –database option allows you to operate on the package database, which contains information about all the packages installed on the system.
By using the –database option with pacman, you can modify certain attributes of the installed packages. For example, you can use it to list all installed packages, search for a specific package, or upgrade the packages in the database.
pacman –database Command Examples
1. Mark a package as implicitly installed:
# sudo pacman --database --asdeps {{package_name}}
2. Mark a package as explicitly installed:
# sudo pacman --database --asexplicit {{package_name}}
3. Check that all the package dependencies are installed:
# pacman --database --check
4. Check the repositories to ensure all specified dependencies are available:
# pacman --database --check --check
5. Display only error messages:
# pacman --database --check --quiet
6. Display help:
# pacman --database --help