Posts tagged ‘ubuntu’

I’ve been re-searching for this page long enough to make a note this time.

http://newbiedoc.sourceforge.net/system/kernel-pkg.html (local copy)

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”;