LinuxCommandLibrary

paci

Install, remove, and update packages (Arch Linux)

TLDR

Update the list of available packages and versions (it's recommended to run this before other paci commands)

$ paci refresh
copy

Configure its behaviour
$ paci configure
copy

Search for a given package
$ paci search [package]
copy

Install a package
$ paci install [package]
copy

Update a package
$ paci update [package]
copy

SYNOPSIS

pacman [operation] [options] [targets]

Common Operations:
  -S, --sync [packages...]
        Synchronize packages (install/upgrade, database sync).
  -R, --remove [packages...]
        Remove packages from the system.
  -U, --upgrade [file...]
        Install or upgrade packages from a local file.
  -Q, --query [packages...]
        Query the package database for installed packages.
  -F, --files [files...]
        Query the files database for package ownership.
  -D, --database [options]
        Manage the pacman database.
  -V, --version
        Display pacman version.

PARAMETERS

-S, --sync
    Synchronize packages. Used for installing new packages (-S package_name), upgrading the whole system (-Syu), or refreshing repository databases (-Sy).

-R, --remove
    Remove specified packages. Can be combined with -c (cascade) to remove dependencies, or -n (nosave) to prevent saving config files.

-U, --upgrade
    Install or upgrade a package from a local file. Useful for packages not in repositories or for testing.

-Q, --query
    Query the local package database. Used to list installed packages (-Q), query a specific package (-Q package_name), or list orphaned packages (-Qdt).

-F, --files
    Query the files database. Used to find which package owns a specific file (-F /path/to/file).

-D, --database
    Manage the pacman database itself, e.g., to check for broken dependencies.

-h, --help
    Display a help message with available options and operations.

-V, --version
    Display the pacman version and build information.

-y
    Refresh package databases. Often used with -S as part of -Syu.

-u
    Upgrade installed packages. Used with -S as part of -Syu.

-c
    Cascade: remove all target packages and all of their dependencies, provided that the dependencies are not required by other explicitly installed packages. Used with -R.

-s
    Search: search for packages in the repositories (used with -S).

DESCRIPTION

Please note: The command paci is not a standard Linux command found in common distributions. This analysis is based on the assumption that paci might be a typo for, or a wrapper/alias around, the well-known pacman utility, which is the default package manager for Arch Linux and its derivatives.

pacman is a powerful command-line tool that simplifies the process of installing, updating, and removing software packages. It handles dependency resolution automatically, allowing users to keep their system up-to-date with minimal effort. Its design focuses on speed, simplicity, and flexibility, leveraging pre-built binary packages.

CAVEATS

paci is not a recognized standard Linux command. If encountered, it is likely a custom script, an alias, or a very specific utility unique to a particular system or project. The information provided here is based on the assumption that paci might be a typo for pacman.

pacman itself is specific to Arch Linux and its derivatives (e.g., Manjaro, EndeavourOS). It will not work out-of-the-box on Debian/Ubuntu (which use apt), Fedora/RHEL (which use dnf/yum), or other distributions.

USAGE EXAMPLES (ASSUMING PACMAN)

Update system:
pacman -Syu

Install a package:
pacman -S package_name

Remove a package and its unneeded dependencies:
pacman -Rs package_name

Search for a package:
pacman -Ss search_term

List all installed packages:
pacman -Q

HISTORY

pacman was created by Judd Vinet, the founder of Arch Linux, in 2002. It was designed to provide a minimal, yet powerful, package management solution for the Arch Linux distribution. Its development has focused on maintaining a lean and efficient design, with a strong emphasis on speed and dependency resolution. Over the years, it has evolved to support features like delta updates and improved database management, remaining a core component of the Arch Linux ecosystem.

SEE ALSO

apt(8), yum(8), dnf(8), zypper(8), dpkg(8), rpm(8)

Copied to clipboard