pacman.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 30 Dec 2022 10:45:49 +0200
changeset 2549 cdc2b3b79a76
parent 2541 c41a01871780
child 2577 f344c5cd259a
permissions -rw-r--r--
List all installed packages.


========================
 pacman package manager
========================
.. contents::
   :local:

Documentation
=============

https://wiki.archlinux.org/title/Pacman
  Arch wiki.
https://wiki.archlinux.org/title/Pacman/Tips_and_tricks
  Tips & tricks.
https://www.msys2.org/docs/package-management/
  MSYS2 / Mingw64 package management with pacman.

Package management
==================

List installed packages::

  pacman -Q

Info about a package::

  pacman -Qi $NAME

Finding dependencies of a package::

  pactree $PKG

Install a package::

  $ pacman -Ss $NAME

Update system::

  pacman -Syy

Upgrade system::

  pacman -Syu

Remove a package::

  pacman -R $NAME

Remove a package with unused dependencies::

  pacman -Rs $NAME

Remove a package with all dependencies::

  pacman -Rcns $NAME

Download a package::

  pacman -Sw $PKG

Install a package from a file::

   pacman -U $PKG.zst
   pacman -U $PKG.tar.xz

Search for a package
====================

By name among remote available packages::

  pacman -Ss $REGEX

Among already installed::

  pacman -Qs $NAME

To search for a package by a file name among installed packages::

  pacman -Qo $FULL_PATH

To search for a package by a file name in remote packages::

  pacman -F $NAME

To weaken search for packages with a given subscring in a file name::

  pacman -Fx $NAME

To update file name package database::

  pacman -Fy

To list all installed packages::

  pacman -Qq

To list only explicitely user requested installed packages::

  pacman -Qqe

To list files for an installed package::

  pacman -Ql $PKG

To list files from a package based on repote information::

  pacman -Fl $PKG