Skip to content

Instantly share code, notes, and snippets.

@saghul
Created June 6, 2012 15:49
Show Gist options
  • Save saghul/2882835 to your computer and use it in GitHub Desktop.
Save saghul/2882835 to your computer and use it in GitHub Desktop.
Local APT repository
# Create local repository
mkdir /location/debs
cp package-file.deb /location/debs
dpkg-scanpackages /location/debs /dev/null | gzip > /location/debs/Packages.gz
# Add repository to APT
deb file:/location debs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment