Skip to content

Instantly share code, notes, and snippets.

@vladislav805
Last active December 19, 2019 21:56
Show Gist options
  • Save vladislav805/fbdde4c544985d82d6e84efb4597d160 to your computer and use it in GitHub Desktop.
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)

Paccache

Clear cache

# paccache -r

-d

Dry run: show list.

-r

Run remove.

-u

Only uninstalled packages.

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