winesapOS/scripts/winesapos-uninstall.sh
Luke Short e686552eb0 [install][tests][upgrade][uninstall][github_actions] Use winesapOS rolling upgrades
repository instead of the stable repository by default.

Resolves 
2025-06-17 22:53:09 -06:00

38 lines
1.3 KiB
Bash
Executable file

#!/bin/bash
# Log the standard output and error of the uninstall to a location that will still exist when done (the 'root' user home directory).
exec > >(tee /root/winesapos-uninstall.log) 2>&1
# Remove winesapOS and SteamOS repositories.
crudini --del /etc/pacman.conf winesapos
crudini --del /etc/pacman.conf winesapos-rolling
crudini --del /etc/pacman.conf winesapos-testing
crudini --del /etc/pacman.conf jupiter
crudini --del /etc/pacman.conf holo
crudini --del /etc/pacman.conf jupiter-rel
crudini --del /etc/pacman.conf holo-rel
pacman -S -y
rm -r -f \
/etc/modprobe.d/winesapos-* \
/etc/os-release-winesapos \
/etc/sddm.conf.d/winesapos.conf \
/etc/sysctl.d/*winesapos* \
/etc/systemd/system/pacman-mirrors.service \
/etc/systemd/system/snapper-cleanup-hourly.timer \
/etc/systemd/system/winesapos-* \
/etc/winesapos/ \
/home/winesap/.winesapos/ \
/home/winesap/Desktop/gfn.desktop \
/home/winesap/Desktop/winesapos-*.desktop \
/usr/lib/modprobe.d/winesapos-* \
/usr/lib/os-release-winesapos \
/usr/lib/systemd/system/winesapos-* \
/usr/lib/sysctl.d/*winesapos* \
/usr/local/bin/winesapos-dual-boot.sh \
/usr/local/bin/winesapos-resize-root-file-system.sh \
/usr/share/libalpm/hooks/winesapos-*.hook \
/usr/share/sddm/faces/winesap.face.icon \
/var/winesapos/
systemctl daemon-reload