Repo creating

How to create debian repository

 * Install any web-server(apach, lighttpd,...)


 * In directory exposed to the web(for example ~/public) do this commands :

cd public mkdir my-repository cd my-repository mkdir binary mkdir source


 * Copy your deb packages to repository(binary packages in binary folder, sources in source)


 * Install tools for creating repository index

sudo apt-get install dpkg-dev


 * Create a repository index. You need to do it every time, when you add new packages.

cd my-repository dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz dpkg-scansources source /dev/null | gzip -9c > source/Sources.gz


 * Add these two lines into the /etc/apt/sources.list to use your repository.

deb http://yourdomain.com/my-repository binary/ deb-src http://yourdomain.com/my-repository source/