Skip to content

Instantly share code, notes, and snippets.

@piratecarrot
Last active July 14, 2026 02:38
Show Gist options
  • Select an option

  • Save piratecarrot/03909f6f7f0a2a89a187acaa01e197b2 to your computer and use it in GitHub Desktop.

Select an option

Save piratecarrot/03909f6f7f0a2a89a187acaa01e197b2 to your computer and use it in GitHub Desktop.
RevolutionPi RevPi Trixie Lite Cleanup
#!/bin/bash
# List all installed packages
# apt --installed list
# List manually installed packages
# apt-mark showmanual
sudo apt-mark manual nftables
sudo apt purge --autoremove \
revpi-bluetooth \
revpi-modbus-server \
revpi-modbus-client \
mqtt-revpi-client \
opcua-revpi-server \
avahi-daemon \
firewalld \
revpi-webserver-firewalld \
firmware-brcm80211 \
revpi-sos-report \
revpipyload \
cockpit \
wpasupplicant \
iptables \
pictory \
raspinfo \
bluez-firmware
sudo rm -rf \
/var/lib/apache \
/etc/php \
/etc/firewalld \
/etc/ufw /etc/cockpit \
/etc/avahi \
/var/www/revpi/pictory \
/var/lib/apache2 \
/etc/cockpit
sudo apt clean -y
sudo apt autoremove -y
sudo apt autoclean -y
echo 'server 0.au.pool.ntp.org iburst' | sudo tee -a /etc/chrony/sources.d/au-pool-ntp-org-server.sources
echo 'server 1.au.pool.ntp.org iburst' | sudo tee -a /etc/chrony/sources.d/au-pool-ntp-org-server.sources
echo 'server 2.au.pool.ntp.org iburst' | sudo tee -a /etc/chrony/sources.d/au-pool-ntp-org-server.sources
echo 'server 3.au.pool.ntp.org iburst' | sudo tee -a /etc/chrony/sources.d/au-pool-ntp-org-server.sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment