mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Get rid of -Sy and -Syy (#1175)
* Get rid of -Sy and -Syy * Get rid of all naked -Sy usage * Don't need a full system update for this * Combine * Does not need a full system update * Need to refresh even just for Omarchy repository * Does not warrant a full system update * No longer need the sudoless pacman runs * We have already added the Omarchy repo before getting to here So fine to just do a straight install
This commit is contained in:
committed by
GitHub
parent
e5927fc1b2
commit
5fec87d324
@@ -3,5 +3,5 @@ echo "Add Omarchy Package Repository"
|
||||
if ! grep -q "omarchy" /etc/pacman.conf; then
|
||||
sudo sed -i '/^\[core\]/i [omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/$arch\/\n' /etc/pacman.conf
|
||||
sudo systemctl restart systemd-timesyncd
|
||||
sudo pacman -Sy
|
||||
sudo pacman -Syu
|
||||
fi
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
echo "Install Plymouth splash screen"
|
||||
|
||||
sudo pacman -Sy --needed --noconfirm uwsm plymouth
|
||||
sudo pacman -S --needed --noconfirm uwsm plymouth
|
||||
source "$HOME/.local/share/omarchy/install/login/plymouth.sh"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
echo "Replace wofi with walker as the default launcher"
|
||||
|
||||
if ! command -v walker &>/dev/null; then
|
||||
sudo pacman -Sy --noconfirm --needed walker-bin libqalculate
|
||||
sudo pacman -S --noconfirm --needed walker-bin libqalculate
|
||||
|
||||
sudo pacman -Rns --noconfirm wofi
|
||||
rm -rf ~/.config/wofi
|
||||
|
||||
@@ -11,7 +11,7 @@ if [[ "$(uname -m)" == "x86_64" ]] && ! grep -q '^\[chaotic-aur\]' /etc/pacman.c
|
||||
echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null
|
||||
|
||||
# Refresh pacman package databases
|
||||
sudo pacman -Sy
|
||||
sudo pacman -Syu
|
||||
else
|
||||
echo "Failed to install Chaotic-AUR, so won't include it in pacman config!"
|
||||
fi
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
echo "Add xmlstarlet needed for updating fonts via Omarchy menu"
|
||||
|
||||
sudo pacman -Sy --noconfirm --needed xmlstarlet
|
||||
sudo pacman -S --noconfirm --needed xmlstarlet
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
echo "Update and restart Walker to resolve stuck Omarchy menu"
|
||||
|
||||
sudo pacman -Sy --noconfirm walker-bin
|
||||
sudo pacman -Syu --noconfirm walker-bin
|
||||
omarchy-restart-walker
|
||||
|
||||
@@ -11,7 +11,7 @@ set_theme_colors() {
|
||||
|
||||
if command -v chromium &>/dev/null; then
|
||||
sudo pacman -Rns --noconfirm chromium || true
|
||||
sudo pacman -Sy --noconfirm omarchy-chromium
|
||||
sudo pacman -S --noconfirm omarchy-chromium
|
||||
|
||||
if pgrep -x chromium; then
|
||||
if gum confirm "Chromium must be restarted. Ready?"; then
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
echo "Ensure latest uwsm is installed"
|
||||
|
||||
sudo pacman -Sy --noconfirm uwsm
|
||||
sudo pacman -Syu --noconfirm uwsm
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
echo "Allow pacman -Sy without sudo to easier installs"
|
||||
|
||||
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
||||
EOF
|
||||
sudo chmod 440 /etc/sudoers.d/repositories
|
||||
3
migrations/1756300740.sh
Normal file
3
migrations/1756300740.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
echo "Remove no-longer-needed sudoless package listing updates"
|
||||
|
||||
sudo rm -f /etc/sudoers.d/repositories
|
||||
Reference in New Issue
Block a user