parent
90e2702be4
commit
6a906330cf
1 changed files with 11 additions and 6 deletions
17
cleanup.sh
17
cleanup.sh
|
@ -7,10 +7,10 @@ printf "Disk Space Before Cleanup...\n"
|
||||||
df -hlT -t ext4
|
df -hlT -t ext4
|
||||||
|
|
||||||
printf "Clearing Docker Image Caches...\n"
|
printf "Clearing Docker Image Caches...\n"
|
||||||
docker rmi -f `docker images -q` &>/dev/null
|
docker rmi -f $(docker images -q) &>/dev/null
|
||||||
|
|
||||||
printf "Uninstalling Unnecessary Applications...\n"
|
printf "Uninstalling Unnecessary Applications...\n"
|
||||||
sudo -E apt-get -qq -y remove --purge \
|
sudo -E apt-get -qq -y purge \
|
||||||
adoptopenjdk-11-hotspot \
|
adoptopenjdk-11-hotspot \
|
||||||
adoptopenjdk-8-hotspot \
|
adoptopenjdk-8-hotspot \
|
||||||
adwaita-icon-theme \
|
adwaita-icon-theme \
|
||||||
|
@ -24,6 +24,7 @@ sudo -E apt-get -qq -y remove --purge \
|
||||||
buildah \
|
buildah \
|
||||||
byobu \
|
byobu \
|
||||||
cabal-* \
|
cabal-* \
|
||||||
|
chromium-browser \
|
||||||
clang-8 \
|
clang-8 \
|
||||||
clang-9 \
|
clang-9 \
|
||||||
clang-format-8 \
|
clang-format-8 \
|
||||||
|
@ -46,6 +47,7 @@ sudo -E apt-get -qq -y remove --purge \
|
||||||
gcc-7 \
|
gcc-7 \
|
||||||
gcc-8 \
|
gcc-8 \
|
||||||
gfortran* \
|
gfortran* \
|
||||||
|
gh \
|
||||||
ghc* \
|
ghc* \
|
||||||
gnome-accessibility-themes \
|
gnome-accessibility-themes \
|
||||||
gnome-contacts \
|
gnome-contacts \
|
||||||
|
@ -146,22 +148,25 @@ sudo -E apt-get -qq -y remove --purge \
|
||||||
ubuntu-mono \
|
ubuntu-mono \
|
||||||
vim \
|
vim \
|
||||||
vim-runtime \
|
vim-runtime \
|
||||||
|
xvfb \
|
||||||
|
yarn \
|
||||||
zulu* &>/dev/null
|
zulu* &>/dev/null
|
||||||
|
sudo -E apt-get -qq -y autoremove &>/dev/null
|
||||||
|
|
||||||
printf "Removing Homebrew...\n"
|
printf "Removing Homebrew...\n"
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" &>/dev/null
|
curl -sL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh -o uninstall-brew.sh && chmod a+x uninstall-brew.sh
|
||||||
|
./uninstall-brew.sh -f -q &>/dev/null
|
||||||
|
|
||||||
sudo npm list -g --depth=0. | awk -F ' ' '{print $2}' | awk -F '@[0-9]' '{print $1}' | sudo xargs npm remove -g &>/dev/null
|
sudo npm list -g --depth=0. 2>/dev/null | awk -F ' ' '{print $2}' | awk -F '@[0-9]' '{print $1}' | sudo xargs npm remove -g &>/dev/null
|
||||||
sudo rm -rf -- /usr/local/lib/node_modules /usr/local/n &>/dev/null
|
sudo rm -rf -- /usr/local/lib/node_modules /usr/local/n &>/dev/null
|
||||||
pip freeze --local | grep -v -i pipx | xargs sudo pip uninstall -y &>/dev/null
|
pip freeze --local | grep -v -i pipx | xargs sudo pip uninstall -y &>/dev/null
|
||||||
|
|
||||||
sudo rm -rf -- \
|
sudo rm -rf -- \
|
||||||
|
/usr/share/az_* \
|
||||||
/usr/share/dotnet \
|
/usr/share/dotnet \
|
||||||
/etc/mysql \
|
/etc/mysql \
|
||||||
/etc/php \
|
/etc/php \
|
||||||
/etc/apt/sources.list.d \
|
/etc/apt/sources.list.d \
|
||||||
&>/dev/null
|
|
||||||
sudo rm -rf -- \
|
|
||||||
/opt/hostedtoolcache/* \
|
/opt/hostedtoolcache/* \
|
||||||
/usr/local/julia* \
|
/usr/local/julia* \
|
||||||
/usr/local/lib/android \
|
/usr/local/lib/android \
|
||||||
|
|
Loading…
Reference in a new issue