Quick guide to setting up a Debian apt repository
This is my quick guide to setting up a Debian apt repository:
Install the needed software
apt-get install apt-utilsCreate the directory structure under the webroot
mkdir -p /var/www/apt/sargeAdd the created .deb files to the archive
cp mypackage-1.0.deb /var/www/apt/sargeUpdate the package list to reflect the new package.
cd /var/www/apt apt-ftparchive packages sarge > sarge/Packages
Gzip the package list to save space and bandwidth
gzip -f sarge/PackagesUpdate the Release file to reflect the new package
apt-ftparchive release sarge > sarge/Release
Now you can add the apt line on your client’s /etc/apt/sources.list and apt-get update to see your freshly minted package.
## Maps to http://apt.theadmin.org/debian/sarge/Packages.gz deb http://apt.theadmin.org/debian/ sarge/
Eric Davis
Comments
-
Also as my own guide, always works great!