summaryrefslogtreecommitdiff
path: root/guides/sysadmin/machines/little-buster/package-management.md
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2025-01-14 23:36:18 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2025-01-15 00:25:26 +0100
commit84261b1ee602ac17089d3330fe4a56698f820ea0 (patch)
tree17d1aa859d78a0baee1acac759fc5bd890a6d16c /guides/sysadmin/machines/little-buster/package-management.md
parent2e605b51e6e00ccf2eaf85b3e98423f36823ab99 (diff)
downloadmemory-leaks-84261b1ee602ac17089d3330fe4a56698f820ea0.tar.xz
Split machine-specific notes
Diffstat (limited to 'guides/sysadmin/machines/little-buster/package-management.md')
-rw-r--r--guides/sysadmin/machines/little-buster/package-management.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/guides/sysadmin/machines/little-buster/package-management.md b/guides/sysadmin/machines/little-buster/package-management.md
new file mode 100644
index 0000000..6906253
--- /dev/null
+++ b/guides/sysadmin/machines/little-buster/package-management.md
@@ -0,0 +1,42 @@
+Here are some things that I do often enough that I want to remember
+how to do them properly, yet rarely enough that I will probably forget
+this stuff if I do not write it down.
+
+# Package managers
+
+## APT
+
+Add deb-src repositories to get:
+
+- `changelog`
+- `build-dep`
+- `source`
+
+# Installing stuff under `$HOME`
+
+E.g. pandoc (compiled from source tarball with stack because there is
+no 32-bit release) and ripgrep:
+
+- programs:
+ - install in `~/.local/bin`
+ - add this folder to `$PATH` (in `.profile` and `.xsessionrc`)
+
+- manpages:
+ - install in `~/.local/share/man/man1`
+ - in `~/.manpath`:
+
+ MANPATH_MAP ~/.local/bin ~/.local/share/man
+
+ - run `mandb --user-db`
+
+- bash completion scripts:
+ - install in `~/.local/share/bash-completion`
+ - in `~/.bash_completion` (sourced by
+ `/usr/share/bash-completion/bash_completion`):
+
+ ``` bash
+ for f in ~/.local/share/bash-completion/*
+ do
+ [ -f "$f" ] && . "$f"
+ done
+ ```