Make Debian apt settings more correctly

This commit is contained in:
TomasM
2017-11-21 01:41:07 -05:00
parent cddddeb7d5
commit 623046ab67
3 changed files with 4 additions and 22 deletions
+1
View File
@@ -5,6 +5,7 @@ THIS=$(dirname $(readlink -f $0))
sed -i -r 's/^LIVEKITNAME.*/LIVEKITNAME="slax"/' $THIS/../../config
sed -i -r 's/^NETWORK.*/NETWORK=true/' $THIS/../../config
. ./copy
. ./install
. ./cleanup
. ./copy
@@ -0,0 +1,3 @@
APT::Install-Recommends "0";
APT::Install-Suggests "0";
Acquire::Languages { "none"; }
-22
View File
@@ -13,28 +13,6 @@ ls() { /bin/ls $LS_OPTIONS "$@"; }
ll() { /bin/ls $LS_OPTIONS -l "$@"; }
l() { /bin/ls $LS_OPTIONS -lA "$@"; }
apt-get()
{
if [ -e /var/cache/apt/pkgcache.bin ]; then
/usr/bin/apt-get --no-install-recommends "$@"
else
/usr/bin/apt-get update
/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
}
export -f ls
export -f ll
export -f l
export -f apt-get
export -f apt