Recommended Arch packages (reflector, pacman-contrib, lsof, curl; optional AUR helper and flatpak):
sudo pacman -S reflector pacman-contrib lsof curlInstall from source:
git clone https://github.com/isaiah76/keystone.git
cd keystone
sudo make install PREFIX=/usrOr build an Arch package with packaging/PKGBUILD:
cd packaging && makepkg -siRun as your normal user (never with sudo). Keystone elevates only when needed. See man keystone for the full manual.
Usage: keystone [options]
-i, --interactive Enable interactive prompts and TTY sessions
-c, --country CODE Country code for reflector (e.g. US, DE)
-l, --logfile PATH Custom log file path
-n, --dry-run Preview without sudo, disk writes, or changes
-m, --update-mirrors Refresh pacman mirrors before updating
-r, --remove-orphans Remove orphan packages in non-interactive mode
-v, --version Show version and exit
-h, --help Show help and exit
Examples:
keystone -i -c US -m # Interactive upgrade + US mirrors + orphan review
keystone --dry-run -m # Preview full run with zero system changes
keystone --remove-orphans # Unattended upgrade + orphan cleanupSettings are safely parsed as KEY=VALUE (never sourced) with precedence: built-in defaults -> /etc/keystone.conf -> ~/.config/keystone.conf -> CLI flags. See config/keystone.conf.example for all options.
INTERACTIVE=false
UPDATE_MIRRORS=false
REMOVE_ORPHANS=false
REFLECTOR_COUNTRY=US
CACHE_VER=2
JOURNAL_SIZE=100M
AUR_HELPERS=(paru yay pamac pikaur)Enable the optional unprivileged user timer to run keystone --dry-run weekly and log system warnings to the journal:
systemctl --user enable --now keystone-check.timer
journalctl --user -u keystone-check.service