Skip to content

Instantly share code, notes, and snippets.

@vladislav805
Last active December 6, 2025 09:57
Show Gist options
  • Select an option

  • Save vladislav805/fbdde4c544985d82d6e84efb4597d160 to your computer and use it in GitHub Desktop.

Select an option

Save vladislav805/fbdde4c544985d82d6e84efb4597d160 to your computer and use it in GitHub Desktop.

Pacman

-S: Installing wiki

Install package

# pacman -S package

-Sy, -Syy

Sync (analog apt update). Double y - force sync.

-Su

Upgrade (analog apt upgrade).

-Syu

Sync and upgrade (analog apt update && apt upgrade).

-Ss

Search packages by keyword.

-R: Remove wiki

Remove package:

# pacman -R package

Analog apt purge

-Rs

Remove with dependencies (except used by others packages).

-Rsc

Remove with dependencies (all). Analog apt remove

-Rn

Save config files.

-Q: Search

-Qs

Search my keyword by installed packages.

-Qdtq

Search installed, but unused packages. To remove: sudo pacman -R $(pacman -Qdtq)

Clear packages cache

# paccache

Operations

-d

Perform a dry run, only finding candidate packages.

-r

Remove candidate packages from the cache directory.

Options

-u

Target uninstalled packages.

-k0

Specify how many versions of each package are kept in the cache directory, default is 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment