Re: Written: Debian Repository HOWTO
On Thu, Jan 02, 2003 at 05:31:36AM +0100, Aaron Isotton wrote:
> Hi,
>
> I've written a Debian Repository HOWTO because I need such a document
> to finish some other document I'm writing :)
>
> It's here:
>
> http://www.isotton.com/debian/docs/debian-repository-howto/
I read your contenta and it looks good and in-depth.
It is missing Release file. I have made a similar guide which creates
Release. Please see Chapter 6 of Debian reference:
http://qref.sf.net or http://www.debian.org/doc/manuals/reference/
6.3.12 Local package archive
In order to create a local package archive which is compatible with APT and the dselect system, Packages needs to be created and package files needs to be populated in a particular directory tree.
Debian official archive like local deb repository can be made:
# apt-get install dpkg-dev
# cd /usr/local
# install -d pool # physical packages are located here
# install -d dists/unstable/main/binary-i386
# ls -1 pool | sed 's/_.*$/ extra BOGUS/' | uniq > override
# editor override # adjust BOGUS
# dpkg-scanpackages pool override /usr/local/ \
> dists/unstable/main/binary-i386/Packages
# cat > dists/unstable/main/Release << EOF
Archive: unstable
Version: 3.0
Component: main
Origin: Local
Label: Local
Architecture: i386
EOF
# echo "deb file:/usr/local unstable main" \
>> /etc/apt/sources.list
Alternatively, quick-n-dirty local deb repository can be made:
# apt-get install dpkg-dev
# mkdir /usr/local/debian
# mv /some/where/package.deb /usr/local/debian
# dpkg-scanpackages /usr/local/debian /dev/null | \
gzip - > /usr/local/debian/Packages.gz
# echo "deb file:/usr/local/debian ./" >> /etc/apt/sources.list
These archives can be remorely accessed by providing access to these directories through either HTTP or FTP methods and changing entries in /etc/apt/sources.list accordingly.
(2nd half was added now for quick method.)
I guess I need to update mine to include source archive :)
--
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
Osamu Aoki <osamu@debian.org> Cupertino CA USA, GPG-key: A8061F32
.''`. Debian Reference: post-installation user's guide for non-developers
: :' : http://qref.sf.net and http://people.debian.org/~osamu
`. `' "Our Priorities are Our Users and Free Software" --- Social Contract
Reply to: