summaryrefslogtreecommitdiff
path: root/personal/setup/package-management.md
blob: e6afc7ab5b90c1fd2fa79ec4d29504fb4e531e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
        ```