Create cli-space-cleanup.sh

This commit is contained in:
Jordan Carlin 2024-07-17 00:17:07 -07:00
parent 72e1125c63
commit a8105f058d
No known key found for this signature in database

9
.github/cli-space-cleanup.sh vendored Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
removePacks=( '^llvm-.*' 'php.*' '^mongodb-.*' '^mysql-.*' '^dotnet-sdk-.*' 'azure-cli' 'google-cloud-cli' 'google-chrome-stable' 'firefox' 'powershell*' 'microsoft-edge-stable' 'mono-devel' )
for pack in "${removePacks[@]}"; do
echo "REMOVING ${pack}"
sudo apt-get purge -y $pack || true
done
sudo apt-get autoremove -y
sudo apt-get clean