Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can add-apt be used for Github repos?

I know that this adds a ppa from launchpad:

sudo add-apt-repository ppa:chris-lea/node.js

I would like to use a Github repository instead of launchpad. Is this possible?


share|improve this question
up vote 7 down vote accepted

Debian package repositories (which are what PPAs are, but with specific packages in them for Ubuntu releases, and not Debian itself) are not the same as git repos. You can't use a git repo for an apt repository.

The main reason for this is because git uses a special server designed to work with source code, and not binary packages. An apt repository server can be set up with a package manager backend and almost any web server, and is specifically designed to work with binary packages.

share|improve this answer
It has a different codification, right? – Lucio Nov 3 '13 at 20:16
@Lucio the difference is more profound. Is how they are maintained. GIT uses a special server while APT's repositories can use any web server + a package manager. – Braiam Nov 3 '13 at 20:37
Git is for source code, apt is for binaries. – James Nov 4 '13 at 2:12

Your Answer


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.