autoricer is a Bash script for setting up a new Linux install from a single declarative file. Instead of running the same commands by hand every time I reinstall, I keep a packagelist.yaml describing what I want, and autoricer handles selecting, installing, and configuring it.
How it works
The script reads packagelist.yaml, which groups packages into categories:
Main:
- firefox
- alacritty
WM:
- i3
It then shows a whiptail checklist, one group at a time, so you can opt whole categories in or out before anything is installed. For each selected package it installs and then configures it.
Distro detection and hooks
The distro is detected automatically by reading $ID from /etc/os-release, and the matching file under distro-specific-functions/ is sourced for that distro’s package-manager commands. Adding support for another distro is just dropping in a new <distro-id>.sh.
For anything that needs special handling, you can define install_<package> or configure_<package> functions in customsetup.sh. If they exist they’re used; otherwise autoricer falls back to the distro’s default install. There’s also a direct mode that skips the TUI:
sudo ./autoricer.sh install i3 alacritty
Source
The code is on GitHub: Skimak/autoricer
>> Home