• 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: command not found

by Deepika

“pacman” is the package manager for Arch Linux and its derivatives. It is used to install, remove, upgrade, and manage packages on the system.

Pacman uses a simple and straightforward command-line interface, and supports multiple repository sources, including the official Arch Linux repository and any additional repositories the user has added. It also supports transactions, ensuring that packages are installed and removed in a consistent and reliable manner.

If you encounter the below error while running the command pacman:

pacman: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install pacman
Ubuntu apt-get install pacman
Alpine apk add pacman
Arch Linux pacman -S pacman
Kali Linux apt-get install pacman
Fedora dnf install pacman
Raspbian apt-get install pacman

pacman Command Examples

1. Synchronize and update all packages:

# sudo pacman -Syu

2. Install a new package:

# sudo pacman -S package_name

3. Remove a package and its dependencies:

# sudo pacman -Rs package_name

4. Search the package database for a regular expression or keyword:

# pacman -Ss "search_pattern"

5. List installed packages and versions:

# pacman -Q

6. List only the explicitly installed packages and versions:

# pacman -Qe

7. List orphan packages (installed as dependencies but not actually required by any package):

# pacman -Qtdq

8. Empty the entire pacman cache:

# sudo pacman -Scc

Summary

In summary, “pacman” is a powerful and flexible package manager for Arch Linux and its derivatives, providing a simple and efficient way to install, remove, upgrade, and manage packages on the system.

Filed Under: Linux

Some more articles you might also be interested in …

  1. Interview Questions : Linux Package Manager (RPM)
  2. What are sparse files in Linux
  3. Understanding RPM Versions and Naming Schemes
  4. SSH Connection Refused by TCP Wrapper
  5. jpegoptim for image optimization
  6. How to convert a Volume to Stripe (RAID0) Volume in LVM
  7. pmap: command not found
  8. Beginners Guide to Linux Software Management with RPM
  9. Understanding OpenSSH Configuration Files
  10. Auditd Messages Are Filling Up /var/log/messages

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