As launchpad does not support binary uploads, I want to make .deb packages and host them in My own Github website.

  1. How to do it?
  2. When done, how to install packages from it?
share|improve this question
up vote 8 down vote accepted

A Ubuntu/Debian repository at the minimum consists of a web server directory containing some .deb packages and an index file which apt-get reads to know which packages and versions are available.

You can read Debian's documentation on how a repository is structured here. You can also try just navigating a simple PPA repository with your web browser to see how it looks in practice. (Example link: pypy ppa).

If you're planning on updating it only rarely, it is possible to set up the necessary directories and index files by hand, but probably not recommended. A tool like debarchiver should help you (although I have not used it personally).

You then just add a new file in /etc/apt/sources.list.d corresponding to your new repository. Eg, a new file /etc/apt/sources.list.d/myrepo.list containing:

deb http://mysite.com/myrepo precise main
share|improve this answer
    
But pypy ppa only has dists and pool folders in root, not the .debs. – Archisman Panigrahi Oct 28 '13 at 10:59
    
The location of each deb file is given in the Packages index. I think you can probably organise the deb files however you want providing the paths are correct. The dists dir however needs to have the correct structure to work. – chronitis Oct 28 '13 at 11:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.