• 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

pacman –database Command Examples in Arch Linux

by Deepika

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

Filed Under: Linux

Some more articles you might also be interested in …

  1. Yum Fails with “Error: database disk image is malformed” in /var/log/messages
  2. CentOS / RHEL : How to move a Volume Group from one system to another
  3. update-rc.d Command Examples in Linux
  4. What are “segfault” messages in /var/log/messages file
  5. CentOS / RHEL 7 : Beginners guide to systemd
  6. pwdx Command Examples in Linux
  7. pivpn Command Examples in Linux
  8. ansible-doc – Display information on modules installed in Ansible libraries
  9. physlock Command Examples in Linux
  10. How to enable IPv6 on CentOS / RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright