[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't install from a local repository



Luk Claes <luk@zeus.UGent.be> writes:

> What I did:
> 
> I put the *.deb, *.dsc, *.diff, *.orig.tar.gz in public_html/pool
> 
> I run dpkg-scanpackages pool /dev/null|gzip -9c> pool/Packages.gz in
> public_html
> 
> I run dpkg-scansources pool|gzip -9c> pool/Sources.gz in public_html
> 
> I added deb-src http://mysite/ pool in sources.list
> 
> If you are only interested in the debs you put deb http://mysite/ pool in
> sources.list

I strongly suggest using the same directory layout as debian
does. That way you can have normaly formated apt sources.list
entries. And can easily provide packages for different archs and dists
(woody/sarge/sid). If your packages are any good soon some people will
want backports.

That means (replace {dist} and {section} with sid,main or sid,local):
repository/dists/{dist}/{section}/binary-<arch>/Package.gz
reposirory/pool/

You can then generate the Packages and Sources files like this:
% cat repository/update.sh
cd repository
dpkg-scanpackages pool /dev/null >dists/{dist}/{section}/binary-i386/Packages
dpkg-scansources pool >dists/{dist}/{section}/source/Sources
gzip -9 <dists/{dist}/{section}/binary-i386/Packages >dists/{dist}/{section}/binary-i386/Packages.gz
gzip -9 <dists/{dist}/{section}/source/Sources >dists/{dist}/{section}/source/Sources.gz

And in sources.list:
deb http://repository {dist} {section}

You should also create Release files which you can mostly copy from
debian. Take care to change the Origin for BTS purposes though.

MfG
        Goswin



Reply to: