Skip to content

Instantly share code, notes, and snippets.

@theodric
Created May 9, 2025 10:07
Show Gist options
  • Save theodric/4e66e10d238d78dd93fb0dffc33ae3c4 to your computer and use it in GitHub Desktop.
Save theodric/4e66e10d238d78dd93fb0dffc33ae3c4 to your computer and use it in GitHub Desktop.
Gets rid of all leftover unattached package cruft
#!/bin/bash
apt-get -yf remove --purge $(dpkg -l | awk '/^rc/{print $2}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment