package-management.md (1004B)
1 Here are some things that I do often enough that I want to remember 2 how to do them properly, yet rarely enough that I will probably forget 3 this stuff if I do not write it down. 4 5 # Package managers 6 7 ## APT 8 9 Add deb-src repositories to get: 10 11 - `changelog` 12 - `build-dep` 13 - `source` 14 15 # Installing stuff under `$HOME` 16 17 E.g. pandoc (compiled from source tarball with stack because there is 18 no 32-bit release) and ripgrep: 19 20 - programs: 21 - install in `~/.local/bin` 22 - add this folder to `$PATH` (in `.profile` and `.xsessionrc`) 23 24 - manpages: 25 - install in `~/.local/share/man/man1` 26 - in `~/.manpath`: 27 28 MANPATH_MAP ~/.local/bin ~/.local/share/man 29 30 - run `mandb --user-db` 31 32 - bash completion scripts: 33 - install in `~/.local/share/bash-completion` 34 - in `~/.bash_completion` (sourced by 35 `/usr/share/bash-completion/bash_completion`): 36 37 ``` bash 38 for f in ~/.local/share/bash-completion/* 39 do 40 [ -f "$f" ] && . "$f" 41 done 42 ```