This is probably something everybody knows, but I’ve been Googling for this answer for over an hour:

  • BASEDIR=/whatever
  • cp $DEBs $BASEDIR/.
  • mkdir -p $BASEDIR/dists/$DIST/$COMPONENT/binary-amd64
  • cd $BASEDIR
  • apt-ftparchive packages . > dists/$DIST/$COMPONENT/binary-amd64/Packages
  • echo “deb file:$BASEDIR $DIST $COMPONENT” >> /etc/apt/sources.list
  • apt-get update

$BASEDIR is whatever directory you have space in (preferably an empty directory); $DIST and $COMPONENT are “jaunty-backports” and “main” in my setup, but you can vary.

You also might need to add the following line to /etc/apt/apt.conf to get rid of the “untrusted source” warning:

APT::Get::AllowUnauthenticated “true”;

One Comment

  1. masmad says:

    There’s also apt-cacher that might be helpful.
    https://help.ubuntu.com/community/Apt-Cacher-Server