Howto: Create your own Debian or Ubuntu package repository
The Debian package management system (called Advanced Packaging Tool or APT) is by far the most well-designed and is one of the top killer features on the Linux platform.
This short Howto describes howto establish a Debian package repository for home-grown deb-packages or like (could be used for Ubuntu as well, since Ubuntu uses the Debian package management system).
Establish repository structure
Create the repository structure in a directory. E.g. in ~/public_html directory exposed to the web.
cd public_html
mkdir my-repository
cd my-repository
mkdir binary
mkdir source
Copy your deb-packages into the repository
Like this
cp src/bzr_0.11-1.1_all.deb public_html/my-repository/binary/
Install the tools to be able to create a repository index
sudo aptitude install dpkg-dev
Create a repository index
cd my-repository
dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
dpkg-scansources source /dev/null | gzip -9c > source/Sources.gz
Using the repository
# Add these two lines into the /etc/apt/sources.list
deb http://mediakey.dk/~cc/my-repository binary/
deb-src http://mediakey.dk/~cc/my-repository source/
Feel free to comment – easier methods and tips are more than welcome
For a more professional package management setup, use reprepro
Related posts:
- Howto duplicate a debian setup
- Howto: Write Debian Package Descriptions
- Ubuntu Howto: Install Oracle
- Howto Install Oracle on Debian
- How package management changed everything
- Howto create a subversion(svn) file based repository
- Howto install Sun Java on Debian Sarge
- Howto: Install Ruby and Rails on Debian or Ubuntu
- Howto Install Sun Java on Debian Etch
- Ubuntu and Ruby
Popular Related Items »
Incoming search terms
- ubuntu repository howto
- create ubuntu repository
- create debian repository
- ubuntu package howto
- ubuntu create package
- ubuntu create repository
- ubuntu package repository
- create repository ubuntu
- create your own debian repository
- how to create ubuntu repository
- creating ubuntu packages
- create ubuntu package
- debian create repository
- create your own ubuntu repository
- make your own ubuntu repository
- own ubuntu repository
- create your own repository
- own debian repository
- creating ubuntu repository
- ubuntu packages howto
- create package ubuntu
- create ubuntu packages
- ubuntu package creation
- ubuntu packages repository
- build your own debian repository
- create Packages gz
- debian create package
- debian own repository
- How to create debian repository
- making ubuntu packages
- ubuntu create own repository
- ubuntu create packages
- build your own debian
- create own repository
- creating an ubuntu repository
- creating your own debian repository
- make your own debian
- ubuntu make package
- build ubuntu repository
- build your own ubuntu package
- create own ubuntu repository
- creating debian repository
- debian repository structure
- how to create a debian repository
- how to make ubuntu repository

miksuh said,
January 9, 2008 @ 2:03
Looks like you are forgetting Secure Apt. You really should create repository key and signed release-file too. Read lthis Debian wiki page:.
http://wiki.debian.org/SecureApt
danny said,
May 11, 2008 @ 1:01
how to create a repository
do not lose what you already downloaded just read this tutorial
http://tips-debian.blogspot.com/2008/04/make-repository.html
IT Administrators » My Own Aptitiude Repos said,
October 19, 2008 @ 0:56
[...] http://mediakey.dk/~cc/howto-create-your-own-debian-or-ubuntu-package-repository/ [...]
My Own Aptitiude Repos : Mike Schoon said,
February 13, 2009 @ 20:35
[...] http://mediakey.dk/~cc/howto-create-your-own-debian-or-ubuntu-package-repository/ [...]
flirc blog» Blog Archive » Great Find to help with development said,
April 25, 2009 @ 21:56
[...] Hosting your own repository [...]