#!/bin/sh
# Made by Ildar (ildar@atacom)

ARCH=i586
ARCHIVE=/var/DATA/ALTLinux
mkdir -p $ARCHIVE/{lists/{BAK,partial},partial}
/bin/cp -auf $ARCHIVE/lists/{[fu]*,BAK}

alias APT='apt-get -o APT::Architecture=$ARCH -o APT::Get::List-Cleanup=false -o Dir::Etc::sourceparts=a -o Dir::Etc::sourcelist=$ARCHIVE/lists/sources.list -o Dir::State=$ARCHIVE/lists/ -o Dir::Cache::archives=$ARCHIVE -o RPM::RootDir=$HOME/tmp/aptbox'

APT install -d -y `cat $HOME/get-alt.list`
#APT update
APT install -d -y `cat $HOME/get-alt.list`

