newsNews: Article: apt-get repositories at download.gna.org

 
 
Show feedback again
Latest News
Gna! hardware failure posted by zerodeux, Tue 14 Feb 2012 06:55:00 PM UTC - 1137 replies
20 minutes downtime posted by beuc, Thu 26 Jan 2012 07:59:58 PM UTC - 426 replies
Subversion upgrade posted by beuc, Sun 06 Nov 2011 11:37:27 AM UTC - 626 replies
Upgrades posted by beuc, Sun 19 Dec 2010 07:59:58 PM UTC - 606 replies
Gna! frontend back - change your passwords posted by beuc, Thu 02 Dec 2010 10:24:16 PM UTC - 487 replies
[110 news in archive]

Article: apt-get repositories at download.gna.org

Item posted by Mathieu Roy <yeupou> on Tue 03 Feb 2004 03:32:08 PM UTC.

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/myproject1.0.0 stable.pkg/1.0.0
mv /build/myproject1.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 user@download.gna.org:/upload/myproject .

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

[Come from:
https://gna.org/faq/?group_id=101&question=Download_Server_--_How_do_I_create_an_apt-get_repository.txt ]

Comments:

Message: 4153
Juicy Couture (posted by jordearmess, Tue 23 Oct 2012 09:39:20 AM UTC)

Juicy Couture UK
Juicy Couture Handbags
Juicy Couture Tracksuits

Thread Author Date
Juicy CouturejordearmessTue 23 Oct 2012 09:39:20 AM UTC
      RE: Juicy CouturelancomegaFri 01 Mar 2013 04:59:10 PM UTC

 

Post a followup to this message

You could post if you were logged in
Show feedback again

Back to the top


Powered by Savane 3.1-cleanup