From c0d8991c0d0129d2df785005bed1692a9fc6322b Mon Sep 17 00:00:00 2001 From: TomasM Date: Sun, 15 Oct 2017 11:34:28 -0400 Subject: [PATCH] cleanup --- Slax/README | 6 ++++++ Slax/debian/cleanup | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/Slax/README b/Slax/README index 01dd4ab..27def4e 100644 --- a/Slax/README +++ b/Slax/README @@ -1,2 +1,8 @@ Each directory contains scripts for easier building of minimal OS installation, also known as SLAX - Small Live Auxiliary linuX + +WARNING: + +You should not run this on your system since it auto-installs some packages +and removes lots of files from your filesystem. +Use only on freshly installed OS. You have been warned. diff --git a/Slax/debian/cleanup b/Slax/debian/cleanup index 758a075..795ca23 100644 --- a/Slax/debian/cleanup +++ b/Slax/debian/cleanup @@ -1,6 +1,15 @@ #!/bin/bash +rm -f /var/backups/* +rm -f /var/cache/ldconfig/* +rm -f /var/lib/apt/extended_states +rm -f /var/lib/systemd/random-seed rm -f /var/lib/apt/lists/deb.* +rm -Rf /root/.local/share/mc +rm -Rf /root/.cache +rm -f /root/.wget-hsts + +rm -f /var/lib/dpkg/*-old rm -f /var/log/* rm -f /var/log/*/* rm -f /var/log/*/*/*