<br /> Merging multiple CDs into one repository – Debian Planet

Welcome to Debian Planet

News for Debian. Stuff that *really* matters

Sponsorship

Debian Planet is hosted by Bluelinux Internet Services Ltd. Offering a special discounted rate for Free and Open Source software community members.

Buy your Debian merchandise at DebianShop.com.

Debian
These are important Debian sites one should not be without!

  • Official Debian site
  • Package search
  • Mailing list archives
  • Bug reports
  • Debian on CD
  • Debian Weekly News — excellent news source!
  • Unofficial APT sources
    (apt-get.org)

  • Developers’ Corner
  • Community
    Need help? You’re not alone on this planet.

  • Planet Debian
  • debianHELP
    (User support site)

  • Debian Administration
    (SysAdmin resources)

  • Debian International
  • DebianForum.de
    (Deutsch)

  • DebianForum.dk
    (Dansk)

  • EsDebian
    (Español)

  • DebianWorld
    (Français)

  • Debian-Fr
    (Français)

  • MaximumDebian
    (Italiano)

  • DebianItalia
    (Italiano)
  • DebianUsers
    (한국어)

  • Debian-BR
    (Português)

  • DebianHOWTO
    (Deutsch)

  • Russian Debian (Русский)
  • Debian-JP
    (日本語)
  • Debian Suisse
    (Suisse)
  • Contribute
    Got that latest or greatest scoop? Perhaps you have some important news for the Debian community? Submit a news item!

    Or perhaps you’ve written a rather ground breaking insight into some aspect of Debian and you feel compelled to share it with others? Knock up a longer editorial article and send it to the editors.

    General feedback should be sent to staff@debianplanet.org

    IRC
    The place to get help on a Debian problem (after reading docs) or to just chat and chill is #debian on irc.oftc.net.

    Many of the Debian Planet staff live there so pop by and say hello.

    Debian Planet also has its own channel on the same network called #debianplanet.

    Syndicate
    XML

    Merging multiple CDs into one repository
    Submitted by ashridah on Tuesday, June 18, 2002 – 20:02
    CD ImagesIs there any way of merging a set of Debian CDs to form one large repository producing apropriate “Packages.gz” files. I have tried debmirror and apt-move to no avail.
    Category: Q & A

    Control panel

    Comment viewing options:



    Select your prefered way to display the comments and click ‘Update settings’ to activate your changes.

    Subject: Re: Merging multiple cds into one repository.
    Author: Anonymous
    Date: Wednesday, 2002/06/19 – 23:03
    So does someone wish to volunteer to create an intuitive GUI replacement/front-end for dpkg-scanpackages, apt-move and mkisofs? Drag and drop your debs folder, and voila an iso ready to burn! Or even just a clever script that asks all the right questions. Might take some expert programming. Not for the faint-hearted. Seems there would be demand for such a tool.
    [ Please login, or register ]

     

    Subject: Please do
    Author: Yorric
    Date: Sunday, 2003/07/20 – 08:36
    I am in almost the same position with a 28.8k connection and no broadband options. At the moment I have relatively current images of sarge on CD-rw’s which took over a month to download. Consequently I have been looking for a program to do this function. The closest I have found is PGI which is no longer being worked on but exists in debian. It looks like it is only compatible with ext2 and doesn’t have a nice gui.
    [ Please login, or register ]

     

    Subject: Re: Merging multiple cds into one repository.
    Author: grolschie
    Date: Saturday, 2002/06/22 – 00:13
    Wonderful, some-one please do. 🙂
    [ Please login, or register ]

    Subject: Quetion on the same topic:
    Author: Anonymous
    Date: Wednesday, 2002/06/19 – 00:36
    Sorry, to bust in on your thread Ashridah.

    Is there a newbie-friendly way to backup .deb files onto an ‘apt-cdrom’ friendly CD? I mean is there a program or nice script that will scan the debs, create the package lists (and whatever else is needed) and write an ISO.

    I have downloaded the debian-cd package, but it seems complicated and overkill for a newbie just wanting to backup debs onto CD (and have apt-cdrom be able to add these to the /etc/apt/sources.list file). Not wanting to create an entire official Debian Distribution CD.

    Thanks.

    [ Please login, or register ]

     

    Subject: Re: Quetion on the same topic:
    Author: glenalec
    Date: Wednesday, 2002/06/19 – 02:11
    I maintain my own minimal Debian install disk with just the packages I use (about 320M worth) because on a 14.4 line I don’t want to be downloading ISOs.

    I keep all my upgraded packages in a folder (apt-move is set up to do this) and periodically run a script:

    #!/bin/sh
    apt-move local
    mkisofs -J -R -l -L -d -b rescue.bin -o /home/cd.iso ./

    then I run a separate script:

    #!/bin/sh
    cdrecord -v dev=0,0 speed=4 /home/cd.iso

    If you don’t want a full install CD, modify the mkiso command to not have the -b rescue.bin

    Apt-move is a bit tricky to set up. Something that wasn’t documented when I set it up last year was that the local directory has to be at the *top* of the sources.list file:

    deb file:/home/Debian testing main contrib non-free # Local repository
    deb ftp://ftp.jp.debian.org/debian testing main contrib non-free
    deb ftp://ftp.jp.debian.org/debian-non-US testing non-US/main non-US/contrib non-US/non-free
    deb ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/debian woody non-free #blackdown java

    Hope this helps

    [ Please login, or register ]

     

    Subject: Re: Quetion on the same topic:
    Author: Anonymous
    Date: Wednesday, 2002/06/19 – 06:06
    Thanks for that. However, I do not wish to mirror a distribution or a website (eg: non-us.debian.org as apt-move seems to need). apt-move expects a url to mirror. To clarify, I don’t need a boot cd. I have Debian CD’s. I just need to back up nicely, a pile of downloaded unofficial debs, and some rolled by me debs.

    If I just create a Packages.gz file and write the directory with it and the debs to a cd, will apt-cdrom work with this cd?

    Sorry if I sound thick. I nice GUI app would be in order. Seems the original question on this thread would be solved by such a program. 🙂

    [ Please login, or register ]

     

    Subject: Re: Quetion on the same topic:
    Author: glenalec
    Date: Wednesday, 2002/06/19 – 11:37
    Ignore all the external URL stuff – that’s just how I get my debs onto the system in dribs and drabs (via 14.4k connection which thankfully I don’t pay for). apt-move local just takes everything in your /var/cache/apt/packages folder (ie all the updates you have apt-getted) and puts them somewhere else properly sorted and in correct disrto folders. Oh, and it also puts in appropriate sources lists. If you then dump this folder to a CD-R you should have an apt-cd-able CD.

    When I had a catastrophic hardware failure recently, I re-installed the Potato image, then rebooted as usual. Once the basic system is on there, it is just a matter of mounting the CDs – just like you want – and this is where the part done by apt-move local is used.

    It’s really just a way of creating a mini-archive of everything already in your /var/cache/apt/packages folder! And apt-get sync is supposed to load up /var/cache/apt/packages with everything already installed on your system if some packages have gone missing (it didn’t work too well for me, but that was ages ago).

    I’d recomend downloading apt-move and reading the docs. You’re not thick, I’m just having trouble describing what I sort of worked out by feel when I really had no clue what I was doing! 😉

    Regards, glenalec

    [ Please login, or register ]

     

    Subject: Re: Question on the same topic:
    Author: OmniscientFerret
    Date: Wednesday, 2002/06/19 – 13:38
    This is also usable with apt-zip, to update lots of packages on a computer without a network connection.

    apt-get uses the label in /.info on the CD (I think) to request a specific CD; it’s useful to put a datestamp there.

    [ Please login, or register ]

    Subject: Re: Merging multiple cds into one repository.
    Author: lordsutch
    Date: Tuesday, 2002/06/18 – 21:13
    Rough draft:

    for CD in CDS:

    1. insert CD
    2. mount /dev/cdrom /cdrom
    3. rsync -avz /cdrom/{indices,dists,pool} /MY_REPOSITORY
    4. umount /dev/cdrom
    5. eject CD

    cd /MY_REPOSITORY
    apt-ftparchive packages dists/woody/main/binary-ARCH/ > dists/woody/main/binary-ARCH/Packages

    [ Please login, or register ]

     

    Subject: Re: Merging multiple cds into one repository.
    Author: ashridah
    Date: Wednesday, 2002/06/19 – 00:26
    and to follow up again:
    does anyone have a sample config file for the apt-ftparchive generate command?
    the package doesn’t include one, and i’m having trouble wrapping my head around it.

    ashridah

    [ Please login, or register ]

     

    Subject: Re: Merging multiple cds into one repository.
    Author: ex-bart
    Date: Wednesday, 2002/06/19 – 12:53
    joe@tegenfeldt:~$ cd /var/spool/mirror/debian/
    joe@tegenfeldt:/var/spool/mirror/debian$ ls
    apt-ftparchive.conf cache.db dists generate
    joe@tegenfeldt:/var/spool/mirror/debian$ cat apt-ftparchive.conf
    DIR {
    ArchiveDir “/var/spool/mirror/debian/index.html”;
    }
    TREEDEFAULT {
    BinCacheDB “/var/spool/mirror/debian/cache.db”;
    }
    TREE “dists/local” {
    Sections “non-free main”;
    Architectures “i386 source”;
    }
    TREE “dists/debian” {
    Sections “main”;
    Architectures “i386”;
    }
    joe@tegenfeldt:/var/spool/mirror/debian$ cat generate
    #!/bin/sh
    apt-ftparchive generate apt-ftparchive.conf
    joe@tegenfeldt:/var/spool/mirror/debian$
    [ Please login, or register ]

     

    Subject: Re: Merging multiple cds into one repository.
    Author: ex-bart
    Date: Wednesday, 2002/06/19 – 12:55
    ah, fsck. hopefully this won’t be magled.

    joe@tegenfeldt:~$ cd /var/spool/mirror/debian/
    joe@tegenfeldt:/var/spool/mirror/debian$ ls
    apt-ftparchive.conf cache.db dists generate
    joe@tegenfeldt:/var/spool/mirror/debian$ cat apt-ftparchive.conf
    DIR {
    ArchiveDir “/var/spool/mirror/debian/index.html”;
    }
    TREEDEFAULT {
    BinCacheDB “/var/spool/mirror/debian/cache.db”;
    }
    TREE “dists/local” {
    Sections “non-free main”;
    Architectures “i386 source”;
    }
    TREE “dists/debian” {
    Sections “main”;
    Architectures “i386”;
    }
    joe@tegenfeldt:/var/spool/mirror/debian$ cat generate
    #!/bin/sh
    apt-ftparchive generate apt-ftparchive.conf
    joe@tegenfeldt:/var/spool/mirror/debian$

    [ Please login, or register ]

     

    Subject: Re: Merging multiple cds into one repository.
    Author: ashridah
    Date: Thursday, 2002/06/20 – 05:57
    sweet. thanks
    ash
    [ Please login, or register ]

     

    Subject: Re: Merging multiple cds into one repository.
    Author: ashridah
    Date: Tuesday, 2002/06/18 – 23:57
    ah. interesting. after modifying it a bit to cope with the fact that the packages are in pool/* now, it seems like it’s the right tool.

    thanks

    [ Please login, or register ]

    Search articles



    Category
    ·News (408)
    ·Features (5)
    ·Site News (16)
    ·HOWTOs (80)
    ·Tips (21)
    ·Opinion (29)
    ·Q & A (35)
    ·Sponsorship (1)
    ·Press Releases (5)

    Log in
    Username:

    Password:

    Remember me

    » Register
    » New password

    Debian Security Announcements
    DSA-943 perl
    DSA-942 albatross
    DSA-903 unzip
    DSA-941 tuxpaint
    DSA-940 gpdf
    DSA-939 fetchmail
    DSA-938 koffice
    DSA-937 tetex-bin
    DSA-936 libextractor
    DSA-935 libapache2-mod-auth-pgsql

    Planet Debian
    Wouter Verhelst: On flames.
    Joachim Breitner: Fixing my planet.debian.org subscription
    Steve Kemp: She has the blood of reptile just underneath her skin
    Pierre Habouzit: Married …
    Pierre Habouzit: whitelister 0.4 (SPF) and aaege ….
    Pierre Habouzit: kde 3.4.1 upload
    Holger Levsen: In case you are running OpenWRT
    Michael Janssen: Shiny roofs are good for the environment!
    Matthew Palmer: Work it out yourself, dammit!
    Axel Beckert: Tell me which music you like and I tell who you are

    Debian Administration
    How do I prevent rebuilt packages from being upgraded?
    Disabling the print-screen key inside X?
    Monitoring your bandwidth usage with vnstat
    Ruby on Rails on Debian
    Choice for Virtual Private Servers?
    Monitoring your hardware’s temperature
    Sending mail with Exim from ‘dialup’ IP
    How to recover GRUB Debian Sarge after reinstalling Windows
    Getting a GUI
    Spam filtering with Pyzor and SpamBayes

    Latest poll: Which release scheme should Debian follow?
    Continue this way (release when ready)
    48%
     
    Give up on releasing
    8%
       
    Split the release up
    8%
       
    Speed the release up
    32%
       
    Crank the workload up (see DebianWiki ReleaseProposals for details on these)
    4%
       

    Total votes: 372
    0 comments · older polls

    home · archives · news feeds · about · polls · search · sections · user account

    Powered by the amazing Drupal

    Debian Planet is not officially related to the Debian Project.
    Debian and the Debian logo are trademarks of Software in the Public Interest, Inc.