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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. CentOS / RHEL 6 : How to rebuild Initial Ramdisk Image
  2. CentOS / RHEL : How to Set up SFTP to Chroot Jail only for Specific Group
  3. playerctl: command not found
  4. startkde: command not found
  5. mkpasswd Command Examples in Linux
  6. Unable To Extend LVM File System with Associated Snapshot in CentOS/RHEL
  7. chrt Command Examples in Linux
  8. Check successful and unsuccessful user login attempts in linux
  9. cut Command Examples in Linux
  10. less: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright