mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-23 11:00:44 -06:00
try new remove strategy
This commit is contained in:
parent
756075cd92
commit
083863d958
1 changed files with 8 additions and 5 deletions
7
.github/actions/clean-disk/action.yml
vendored
7
.github/actions/clean-disk/action.yml
vendored
|
@ -34,11 +34,14 @@ runs:
|
||||||
|
|
||||||
echo "Removing unwanted software... "
|
echo "Removing unwanted software... "
|
||||||
|
|
||||||
# if [[ "${{ inputs.purge-packages }}" == 'true' ]]; then
|
if [[ "${{ inputs.purge-packages }}" == 'true' ]]; then
|
||||||
# sudo apt-get purge \
|
# sudo apt-get purge \
|
||||||
# --allow-remove-essential \
|
# --allow-remove-essential \
|
||||||
# $(non_manifest_packages) # > /dev/null
|
# $(non_manifest_packages) # > /dev/null
|
||||||
# fi
|
# Remove all packages that are not required by the base system:
|
||||||
|
sudo apt-get remove $(comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u))
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
sudo rm -rf \
|
sudo rm -rf \
|
||||||
/var/lib/docker/ \
|
/var/lib/docker/ \
|
||||||
|
|
Loading…
Reference in a new issue