Re: how th generate like oficial site from packages (or CD's)



Preston Boyington wrote:
Hugo Vanwoerkom wrote:

Indeed, reprepro is a lot better, I tried it yesterday, and faster too.
I invoke reprepro from a C++ program to generate a local mirror of all the packages that a system contains, generated by dpkg-repack, if anybody is interested.

Hugo

I am very interested. How can I get more information?


The process is basically 2 steps: (a) generate debs for all the packages on the system and (b) generate a local mirror of those.

1. Allocate a dir. e.g. /archive
2. In that dir. run:
set COLUMNS=200
dpkg -l &>11.packages
which will generate 11.packages containing all that is installed.
3. Run 'do_recreate_archives 11.packages' in that dir: it will generate all the debs of the packages that are installed. Check the output: if a 'package is broken' you have to substitute that deb!
4. Now follow http://www.debian-administration.org/articles/286 in setting up a reprepro configuration file, e.g.:

Origin: Debian
Label: Local Repository
Suite: unstable
Codename: sid
Version: 3.1
Architectures: i386 source
Components: main contrib non-free
Description: Local Repository

5. In the reprepro main dir. run 'do_reprepro_archives /archives/' and a local mirror will be generated that contains all the packages that are installed on the current system.

This uses 2 programs that I wrote in C++ using Qt: 'do_recreate_archives' and 'do_reprepro_archives'. They should be compiled and placed where you can invoke them.

If you tell me where to send them I can send them. Obviously this can be done also using any scripting language. I use Qt because I know it and have it installed.

Hugo






--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Logic
    ... Now imagine the case where the repository *is* the local mirror. ... I have, however, discovered *far* more about ACPI than I ... Besides grovelling through the source of all the packages involved ... David Cameron Staples | staples AT cs DOT mu DOT oz DOT au ...
    (alt.sysadmin.recovery)
  • trouble forcing apt-get into using local mirror
    ... with apt-move) instead of remote debian mirrors. ... Why is it not grabbing from my local mirror with apt-get -d --reinstall ... install (I use these options to quickly test local packages, ... Debian Testing distribution - Not Released ...
    (Debian-User)
  • Re: many packages not available
    ... allow users to specify packages from the build cluster only. ... local mirror) first. ... create a local repository for updating multiple machines on a LAN." ...
    (comp.unix.bsd.freebsd.misc)
  • Re: debmirror: cpu bound?
    ... the local mirror currently has about 12GB of content. ... > task involved in mirroring) after fetching new/updated packages. ... > sources.list and generates a Debian-style directory structure which I ...
    (Debian-User)
  • Re: how th generate like oficial site from packages (or CDs)
    ... I invoke reprepro from a C++ program to generate a local mirror of all the packages that a system contains, generated by dpkg-repack, if anybody is interested. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)