newsNews: Article: apt-get repositories at

Show feedback again
Latest News
Gna! closing soon posted by beuc, Tue Jan 31 22:31:06 2017 - 5 replies
mail subsystem upgraded posted by beuc, Sat May 23 18:17:18 2015 - 1 reply
dl/home/cvs/svn/ upgraded to debian8 posted by beuc, Thu May 21 22:12:23 2015 - 2 replies SSL certificate renewed posted by zerodeux, Thu Apr 24 07:13:06 2014 - 4 replies
Heartbleed status and measures posted by beuc, Wed Apr 9 09:47:29 2014 - 2 replies
[125 news in archive]

Article: apt-get repositories at

Item posted by Mathieu Roy <yeupou> on Tue Feb 3 15:32:08 2004.

How do I create an apt-get repository for my debian packages on my project download area at gna? The following short article will try to provide some insight about that.

We assume that you already used your download area, that everything worked well. If it is not the case, please read the related FAQ entries first.

In the commands proposed on this page, you must replace user by your login and project by your project unix name.

The first thing do is to create the directory structure. We will use the Savannah file list directory structure:
mkdir myproject.dl && cd myproject.dl
mkdir -p stable.pkg/1.0.0 unstable.pkg/1.1.0

Put there your packages for the relevant release:
mv /build/myproject*1.0.0* stable.pkg/1.0.0
mv /build/myproject*1.1.0* unstable.pkg/1.1.0

Make sure the apt-ftparchive package is installed. Then create the Packages file, or several Packages file if you want to build several repositories. In this case, it make sense to build one repository per package:
apt-ftparchive packages stable.pkg/1.0.0/ > stable.pkg/Packages
apt-ftparchive packages unstable.pkg/1.1.0/ > unstable.pkg/Packages

It is a good practice to save bandwidth by compressing the Packages files:
gzip stable.pkg/Packages
gzip unstable.pkg/Packages

Synchronise your directory with the download area:
rsync -avr --delete .

Tell users what they need to add in their /etc/apt/sources.list, for instance, for the stable version:
deb stable.pkg/

[Come from: ]


No messages in Article: apt-get repositories at


Start a New Thread:

You could post if you were logged in
Show feedback again

Back to the top

Powered by Savane 3.1-cleanup