Uninstallation & Recovery¶
Pimarchy is designed to be fully reversible. If you need to revert your Raspberry Pi to its original state, follow these steps.
The uninstall.sh Script¶
The uninstall.sh script is the primary tool for removing Pimarchy. It handles several key tasks:
- Backs up current configs: Before making changes, it creates a final snapshot of your configuration.
- Restores original backups: It looks for the
.original-backupmarker and restores your pre-Pimarchy configurations to~/.config/. - Removes packages (Optional): You will be prompted to choose whether to remove the packages installed by Pimarchy.
- Reverts Boot Settings: It removes boot lines Pimarchy added in
/boot/firmware/config.txtand/boot/firmware/cmdline.txt. Lines you wrote yourself stay in place. GPUI theme state under~/.local/state/{omarchy,pimarchy}/current/theme/is removed. - Disables Greetd: It disables the login manager and reverts the system to a standard TTY console login.
How to Uninstall¶
- Navigate to the install root (netinstall uses
~/.local/share/pimarchy): - Run the uninstaller:
-
Follow the interactive prompts:
- Remove packages? (y/N) — If you select y, Hyprland, Waybar, Foot, and other core packages will be removed (dev/office module packages you installed separately are untouched except for the shared core set).
network-manager-gnome(the transitionalnm-appletpackage) is not installed again. Wi-Fi stays available throughnmcliandnmtui. - Remove backup files? (y/N) — Choose whether to delete the config backups in
~/.config/Pimarchy-backup/.
The Ollama polkit rule
/etc/polkit-1/rules.d/50-pimarchy-ollama.rulesis removed either way. Declining package removal still deletes that rule. - Remove packages? (y/N) — If you select y, Hyprland, Waybar, Foot, and other core packages will be removed (dev/office module packages you installed separately are untouched except for the shared core set).
-
Final Reboot:
Manual Recovery¶
If for some reason uninstall.sh fails, you can manually revert your system:
1. Disable Greetd¶
2. Remove Pimarchy boot lines¶
The CPU governor is the systemd unit pimarchy-governor.service, not a line in config.txt:
sudo systemctl disable --now pimarchy-governor.service
sudo rm -f /etc/systemd/system/pimarchy-governor.service
sudo systemctl daemon-reload
If you accepted the overclock prompt, /boot/firmware/config.txt contains this comment and the arm_freq line under it:
An older install that had no [all] section wrote this block instead. Remove the comment, the [all] header that belongs to it, and arm_freq=2600:
Leave any other arm_freq= line in the file. An older install that already had an [all] section wrote a bare arm_freq=2600 under that header and no comment. uninstall.sh leaves that line in place. Remove it when it came from the overclock prompt.
A previous Pimarchy version also wrote a PCIe Gen 3 block. Remove the comment and the dtparam line under it. When that block is the whole [all] section, remove the [all] header with it:
Leave a dtparam=pciex1_gen=3 or dtparam=pciex1_gen=2 line that has no Pimarchy comment above it.
The same version added # Pimarchy: Pi 500 has no camera above camera_auto_detect. Remove the comment and leave the camera_auto_detect value as it is. On a Pi 5 with a CSI camera, set camera_auto_detect=1 when you want firmware autodetect back.
On /boot/firmware/cmdline.txt, delete a trailing cma=512M token that version appended (the line ends in cma=512M, or the line is only cma=512M). Leave cma=64M, cma=128M, cma=256M, and a cma=512M that is not at the end of the line.
uninstall.sh removes those owned lines. It unmasks NetworkManager-wait-online.service when a previous install masked it, and it does not enable the unit.
3. Restore Backups¶
Your original configurations are stored in ~/.config/Pimarchy-backup/original/. You can copy them back to ~/.config/.
Need a Fresh Start?¶
If you want to completely wipe Pimarchy and start over, the fastest way is to re-flash your MicroSD card with a fresh Pi OS Lite image, or rebuild/flash the custom first-boot image.