Fixed up the docs a bit
[ntk/apt.git] / dselect / update
CommitLineData
7a1b1f8b
AL
1#!/bin/sh
2set -e
3
4# Get the configuration from /etc/apt/apt.conf
5OPTS="-f"
6APTGET="/usr/bin/apt-get"
7APTCACHE="/usr/bin/apt-cache"
8DPKG="/usr/bin/dpkg"
9CACHEDIR="/var/cache/apt"
10RES=`apt-config shell OPTS DSelect::UpdateOptions \
11 DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get \
12 APTCACHE Dir::Bin::apt-cache CACHEDIR Dir::Cache`
13eval $RES
14
15$APTGET $OPTS update
16
17echo "Merging Available information"
18rm -f /var/cache/apt/available
19$APTCACHE dumpavail > $CACHEDIR/available
20$DPKG --update-avail $CACHEDIR/available
21rm -f $CACHEDIR/available
22exit 0