From 6f5e2da03e5fd1af2200d2f55ca84647bc8d3626 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:04:40 +0200 Subject: Adding live-package 0.99.22-1. --- helpers/lh_cleanapt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 helpers/lh_cleanapt (limited to 'helpers/lh_cleanapt') diff --git a/helpers/lh_cleanapt b/helpers/lh_cleanapt new file mode 100755 index 000000000..ec28865cf --- /dev/null +++ b/helpers/lh_cleanapt @@ -0,0 +1,17 @@ +#!/bin/sh + +# lh_cleanapt + +# Clean apt packages cache +rm -rf "${LIVE_CHROOT}"/var/cache/apt +mkdir -p "${LIVE_CHROOT}"/var/cache/apt/archives/partial + +# Clean apt list cache +rm -rf "${LIVE_CHROOT}"/var/lib/apt/lists/* +mkdir -p "${LIVE_CHROOT}"/var/lib/apt/lists/partial + +# Remove old files +rm -f "${LIVE_CHROOT}"/var/lib/dpkg/available-old +rm -f "${LIVE_CHROOT}"/var/lib/dpkg/diversions-old +rm -f "${LIVE_CHROOT}"/var/lib/dpkg/statoverride-old +rm -f "${LIVE_CHROOT}"/var/lib/dpkg/status-old -- cgit v1.2.3