Files
omarchy/bin/omarchy-reinstall-pkgs
2026-01-05 11:00:56 +01:00

15 lines
471 B
Bash
Executable File

#!/bin/bash
set -e
# Reinstall all default Omarchy packages from the stable channel and downgrade any packages that are too new.
# Set the package repository to the stable mirrors
omarchy-refresh-pacman
# Downgrade any packages to the stable setup
sudo pacman -Suu --noconfirm
# Ensure all packages are installed
mapfile -t packages < <(grep -v '^#' "$OMARCHY_PATH/install/omarchy-base.packages" | grep -v '^$')
sudo pacman -Syu --noconfirm --needed "${packages[@]}"