Skip to content
isaiah76Public

About

Arch Linux update and maintenance Bash Script, supports Arch based distros (EndeavourOS, Manjaro, Garuda, etc).

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

Keystone

Modular Bash maintenance tool for Arch Linux and Arch-based distributions.

CI Latest Release License: GPL-3.0 Platform: Arch Linux


Keystone terminal demo

Install

Recommended Arch packages (reflector, pacman-contrib, lsof, curl; optional AUR helper and flatpak):

sudo pacman -S reflector pacman-contrib lsof curl

Install from source:

git clone https://github.com/isaiah76/keystone.git
cd keystone
sudo make install PREFIX=/usr

Or build an Arch package with packaging/PKGBUILD:

cd packaging && makepkg -si

Usage

Run 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 cleanup

Configuration

Settings 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)

Weekly Health Check (systemd)

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

About

Arch Linux update and maintenance Bash Script, supports Arch based distros (EndeavourOS, Manjaro, Garuda, etc).

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages