From df3b1cbb8252cc7cd42999aa24380812b3c03f18 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 5 Jan 2026 10:33:47 +0100 Subject: [PATCH] Add a subcommand for reinstalling packages from the stable repository --- bin/omarchy-reinstall-pkgs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/omarchy-reinstall-pkgs diff --git a/bin/omarchy-reinstall-pkgs b/bin/omarchy-reinstall-pkgs new file mode 100755 index 00000000..c06606bf --- /dev/null +++ b/bin/omarchy-reinstall-pkgs @@ -0,0 +1,17 @@ +#!/bin/bash + +# Attempt to reinstall all default Omarchy packages and reset all the default configs. + +set -e + +echo "Reinstalling missing Omarchy packages from stable repository" + +# Set the package repository to the stable mirrors +omarchy-refresh-pacman + +# Downgrade any packages to the stable setup +sudo pacman -Suu + +# Ensure all packages are installed +mapfile -t packages < <(grep -v '^#' "$OMARCHY_PATH/install/omarchy-base.packages" | grep -v '^$') +sudo pacman -Syu --noconfirm --needed "${packages[@]}"