Skip to content

Instantly share code, notes, and snippets.

View chiranthsiddappa's full-sized avatar

Chiranth Siddappa chiranthsiddappa

View GitHub Profile
@chiranthsiddappa
chiranthsiddappa / list_all_software_bash.sh
Last active August 1, 2019 22:15
List development packages being used on Ubuntu
#!/bin/bash
source ~/.bash_profile
if hash sdk 2>/dev/null; then
sdk current
echo "Gradle cache:"
pushd ~/.gradle/caches && tree | grep '.jar' | grep -v 'sources' | rev | cut -d' ' -f1 | rev | sed 's/[-_][0-9].*//' | sort| uniq
popd
fi
if hash python2 2>/dev/null; then