Skip to content

Instantly share code, notes, and snippets.

@Zeryther
Created March 20, 2021 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zeryther/a5fb21d129dac45b4329f4d0fb15c92b to your computer and use it in GitHub Desktop.
Save Zeryther/a5fb21d129dac45b4329f4d0fb15c92b to your computer and use it in GitHub Desktop.
Uninstall all versions of Java on Debian
dpkg-query -W -f='${binary:Package}\n' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e '^java-common' | xargs apt-get -y remove
apt-get -y autoremove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment