Make Debian apt settings more correctly

pull/40/head
TomasM 2017-11-21 01:41:07 -05:00
parent cddddeb7d5
commit 623046ab67
3 changed files with 4 additions and 22 deletions

View File

@ -5,6 +5,7 @@ THIS=$(dirname $(readlink -f $0))
sed -i -r 's/^LIVEKITNAME.*/LIVEKITNAME="slax"/' $THIS/../../config sed -i -r 's/^LIVEKITNAME.*/LIVEKITNAME="slax"/' $THIS/../../config
sed -i -r 's/^NETWORK.*/NETWORK=true/' $THIS/../../config sed -i -r 's/^NETWORK.*/NETWORK=true/' $THIS/../../config
. ./copy
. ./install . ./install
. ./cleanup . ./cleanup
. ./copy . ./copy

View File

@ -0,0 +1,3 @@
APT::Install-Recommends "0";
APT::Install-Suggests "0";
Acquire::Languages { "none"; }

View File

@ -13,28 +13,6 @@ ls() { /bin/ls $LS_OPTIONS "$@"; }
ll() { /bin/ls $LS_OPTIONS -l "$@"; } ll() { /bin/ls $LS_OPTIONS -l "$@"; }
l() { /bin/ls $LS_OPTIONS -lA "$@"; } 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 ls
export -f ll export -f ll
export -f l export -f l
export -f apt-get
export -f apt