From ba7d38240198ba854384328843da52a26209f488 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 28 Nov 2021 22:26:50 +0000 Subject: deploy: 6660154d7eaae83f3e8765af8b93dcd651e05452 --- tools/awk.html | 2 +- tools/bash.html | 2 +- tools/emacs.html | 2 +- tools/fish.html | 2 +- tools/gdb.html | 2 +- tools/git.html | 2 +- tools/gpg.html | 2 +- tools/index.html | 3 +- tools/pacman.html | 262 +++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/qemu.html | 6 +- tools/radare2.html | 2 +- tools/tmux.html | 2 +- tools/zsh.html | 2 +- 13 files changed, 277 insertions(+), 14 deletions(-) create mode 100644 tools/pacman.html (limited to 'tools') diff --git a/tools/awk.html b/tools/awk.html index 3087bd7..f75cd70 100644 --- a/tools/awk.html +++ b/tools/awk.html @@ -81,7 +81,7 @@ diff --git a/tools/bash.html b/tools/bash.html index 1a5514d..2313057 100644 --- a/tools/bash.html +++ b/tools/bash.html @@ -81,7 +81,7 @@ diff --git a/tools/emacs.html b/tools/emacs.html index 7d7f957..007a159 100644 --- a/tools/emacs.html +++ b/tools/emacs.html @@ -81,7 +81,7 @@ diff --git a/tools/fish.html b/tools/fish.html index 65732aa..c41e571 100644 --- a/tools/fish.html +++ b/tools/fish.html @@ -81,7 +81,7 @@ diff --git a/tools/gdb.html b/tools/gdb.html index a9d36d4..fbac2a3 100644 --- a/tools/gdb.html +++ b/tools/gdb.html @@ -81,7 +81,7 @@ diff --git a/tools/git.html b/tools/git.html index a140a9a..54f6a30 100644 --- a/tools/git.html +++ b/tools/git.html @@ -81,7 +81,7 @@ diff --git a/tools/gpg.html b/tools/gpg.html index 5085c8c..558be0a 100644 --- a/tools/gpg.html +++ b/tools/gpg.html @@ -81,7 +81,7 @@ diff --git a/tools/index.html b/tools/index.html index 4ae4881..df52377 100644 --- a/tools/index.html +++ b/tools/index.html @@ -81,7 +81,7 @@ @@ -165,6 +165,7 @@
  • gdb
  • radare2
  • qemu
  • +
  • pacman
  • diff --git a/tools/pacman.html b/tools/pacman.html new file mode 100644 index 0000000..b65cbb0 --- /dev/null +++ b/tools/pacman.html @@ -0,0 +1,262 @@ + + + + + + pacman - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + + + + + + +
    +
    +

    pacman(1)

    +

    Remote package repositories

    +
    pacman -Sy              refresh package database
    +pacman -S <pkg>         install pkg
    +pacman -Ss <regex>      search remote package database
    +pacman -Si <pkg>        get info for pkg
    +pacman -Su              upgrade installed packages
    +pacman -Sc              clean local package cache
    +
    +

    Remove packages

    +
    pacman -Rsn <pkg>               uninstall package and unneeded deps + config files
    +
    +

    Local package database

    +

    Local package database of installed packages.

    +
    pacman -Q               list all installed packages
    +pacman -Qs <regex>      search local package database
    +pacman -Ql <pkg>        list files installed by pkg
    +pacman -Qo <file>       query package that owns file
    +pacman -Qe              only list explicitly installed packages
    +
    +

    Local file database

    +

    Local file database which allows to search packages owning certain files. +Also searches non installed packages, but database must be synced.

    +
    pacman -Fy              refresh file database
    +pacman -Fl <pkg>        list files in pkg (must not be installed)
    +pacman -Fx <regex>      search 
    +
    +

    Hacks

    +

    Uninstall all orphaned packages (including config files) that were installed as +dependencies.

    +
    pacman -Rsn $(pacman -Qqtq)
    +
    +

    List explicitly installed packages that are not required as dependency by any +package and sort by size.

    +
    pacman -Qetq | xargs pacman -Qi |
    +    awk '/Name/ { name=$3 }
    +         /Installed Size/ { printf "%8.2f%s %s\n", $4, $5, name }' |
    +    sort -h
    +
    + +
    + + +
    +
    + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/qemu.html b/tools/qemu.html index 6a04769..3a74d43 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -81,7 +81,7 @@ @@ -374,7 +374,7 @@ launched with the same parameters.

    - @@ -392,7 +392,7 @@ launched with the same parameters.

    - diff --git a/tools/radare2.html b/tools/radare2.html index a33cbaa..53073ba 100644 --- a/tools/radare2.html +++ b/tools/radare2.html @@ -81,7 +81,7 @@ diff --git a/tools/tmux.html b/tools/tmux.html index 0348842..2c075e3 100644 --- a/tools/tmux.html +++ b/tools/tmux.html @@ -81,7 +81,7 @@ diff --git a/tools/zsh.html b/tools/zsh.html index e1fc9f1..18be999 100644 --- a/tools/zsh.html +++ b/tools/zsh.html @@ -81,7 +81,7 @@ -- cgit v1.2.3