From a5a9da67832390bd21ee65ad1e0bf26ae50fbfc1 Mon Sep 17 00:00:00 2001 From: TomasM Date: Sun, 15 Oct 2017 11:40:56 -0400 Subject: [PATCH] apt --- Slax/debian/rootcopy/root/.bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Slax/debian/rootcopy/root/.bashrc b/Slax/debian/rootcopy/root/.bashrc index 7853b39..cbd638a 100644 --- a/Slax/debian/rootcopy/root/.bashrc +++ b/Slax/debian/rootcopy/root/.bashrc @@ -26,3 +26,13 @@ apt-get() /usr/bin/apt-get --no-install-recommends "$@" fi } + +apt() +{ + if [ -e /var/cache/apt/pkgcache.bin ]; then + /usr/bin/apt --no-install-recommends "$@" + else + /usr/bin/apt update + /usr/bin/apt --no-install-recommends "$@" + fi +}