Skip to content

Instantly share code, notes, and snippets.

@xstasi
Last active December 31, 2015 06:29
Show Gist options
  • Save xstasi/7947843 to your computer and use it in GitHub Desktop.
Save xstasi/7947843 to your computer and use it in GitHub Desktop.
Maintain a basic APT repository
#!/bin/bash
cd /var/www/repository
apt-ftparchive packages . > Packages
cat Packages|gzip -9 > Packages.gz
apt-ftparchive release . > Release
rm -f Release.gpg
gpg -abs -o Release.gpg Release
# Access the repository with: deb http://server.url/repository ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment