<commit_before># Unix Package Management

This is a table of commonly used package management commands for the Unix-like
operating systems I use.


| Action                     | Arch Linux                                | Debian GNU/Linux        | Red Hat Linux           | Alpine Linux | FreeBSD (System)         | FreeBSD (Ports) | OpenBSD              |
|----------------------------|-------------------------------------------|-------------------------|-------------------------|--------------|--------------------------|-----------------|----------------------|
| List Available Packages    | `pacman -Sl`                              | `apt list`              | `yum list --available`  |              |                          |                 |                      |
| List Installed Packages    | `pacman -Q`                               | `dpkg -l`               | `yum list --installed`  |              |                          |                 | `pkg_info`           |
| Search Package             | `pacman -Ss [name]`                       | `apt search [name]`     | `yum search [name]`     |              |                          |                 | `pkg_info -Q [name]` |
| Show Package Details       | `pacman -Qi [name]`                       | `apt show [name]`       | `yum info [name]`       |              |                          |                 |
| Install Package            | `pacman -S [name]`                        | `apt install [name]`    | `yum install [name]`    |              |                          |                 | `pkg_add [name]`     |
| Update Package Index       | `pacman -Sy`                              | `apt update`            | `yum update`            |              | `freebsd-update fetch`   |                 |
| Upgrade Packages           | `pacman -Su`                              | `apt upgrade`           | `yum upgrade`           |              | `freebsd-update install` | `pkg upgrade`   | `pkg_add -u`         |
| Remove Package             | `pacman -R [name]`                        | `apt remove [name]`     | `yum remove [name]`     |              |                          |                 | `pkg_delete [name]`  |
| Remove with Dependencies   | `pacman -Rs [name]`                       | `apt autoremove [name]` | `yum autoremove [name]` |              |                          |                 | `pkg_delete [name]`  |
| Find Package by File       | `pacman -F [file]` or `pacman -Qo [file]` | `dpkg -S [file]`        | `yum provides [file]`   |              |                          |                 |                      |
| List Package Files         | `pacman -Ql [name]`                       | `dpkg -L [name]`        | `repoquery -l [name]`   |              |                          |                 | `pkg_info -L [name]` |
| Remove Unused Dependencies | n/a                                       | `apt autoremove`        | `yum autoremove`        |              |                          |                 | `pkg_delete -a`      |
| Cleanup Cache              | `pacman -Sc`                              | `apt autoclean`         | `yum clean all`         |              |                          |                 |                      |
| Consistency Check          | `pacman -Dk`                              | n/a                     | `yum check`             |              |                          |                 |                      |

## Notes

- Arch Linux
    - `pacman -F [file]` works on all packages, but requires the file database
      to be present (`pacman -Fy`). `pacman -Qo [file]` only works for installed
      packages.
- Red Hat Linux
    - The `repoquery` tool is provided by `yum-utils`.
<commit_msg>dropped Alpine for the time being<commit_after># Unix Package Management

This is a table of commonly used package management commands for the Unix-like
operating systems I use.


| Action                     | Arch Linux                                | Debian GNU/Linux        | Red Hat Linux           | FreeBSD (System and Ports)                 | OpenBSD              |
|----------------------------|-------------------------------------------|-------------------------|-------------------------|--------------------------------------------|----------------------|
| List Available Packages    | `pacman -Sl`                              | `apt list`              | `yum list --available`  |                                            |                      |
| List Installed Packages    | `pacman -Q`                               | `dpkg -l`               | `yum list --installed`  |                                            | `pkg_info`           |
| Search Package             | `pacman -Ss [name]`                       | `apt search [name]`     | `yum search [name]`     |                                            | `pkg_info -Q [name]` |
| Show Package Details       | `pacman -Qi [name]`                       | `apt show [name]`       | `yum info [name]`       |                                            |
| Install Package            | `pacman -S [name]`                        | `apt install [name]`    | `yum install [name]`    |                                            | `pkg_add [name]`     |
| Update Package Index       | `pacman -Sy`                              | `apt update`            | `yum update`            | `freebsd-update fetch`                     |
| Upgrade Packages           | `pacman -Su`                              | `apt upgrade`           | `yum upgrade`           | `freebsd-update install` and `pkg upgrade` | `pkg_add -u`         |
| Remove Package             | `pacman -R [name]`                        | `apt remove [name]`     | `yum remove [name]`     |                                            | `pkg_delete [name]`  |
| Remove with Dependencies   | `pacman -Rs [name]`                       | `apt autoremove [name]` | `yum autoremove [name]` |                                            | `pkg_delete [name]`  |
| Find Package by File       | `pacman -F [file]` or `pacman -Qo [file]` | `dpkg -S [file]`        | `yum provides [file]`   |                                            |                      |
| List Package Files         | `pacman -Ql [name]`                       | `dpkg -L [name]`        | `repoquery -l [name]`   |                                            | `pkg_info -L [name]` |
| Remove Unused Dependencies | n/a                                       | `apt autoremove`        | `yum autoremove`        |                                            | `pkg_delete -a`      |
| Cleanup Cache              | `pacman -Sc`                              | `apt autoclean`         | `yum clean all`         |                                            |                      |
| Consistency Check          | `pacman -Dk`                              | n/a                     | `yum check`             |                                            |                      |

## Notes

- Arch Linux
    - `pacman -F [file]` works on all packages, but requires the file database
      to be present (`pacman -Fy`). `pacman -Qo [file]` only works for installed
      packages.
- Red Hat Linux
    - The `repoquery` tool is provided by `yum-utils`.

{'fraction_non_alphanumeric': 0.15061898211829436, 'fraction_numerical': 0.0, 'mean_word_length': 0.7419741255390513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 69, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4482285', 'n_tokens_mistral': 1769, 'n_tokens_neox': 1658, 'n_words': 492}