This page (revision-3) was last changed on 12-Mar-2009 11:39 by MarkusMonderkamp 

This page was created on 12-Mar-2009 10:14 by MarkusMonderkamp

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
3 12-Mar-2009 11:39 14 KB MarkusMonderkamp to previous Update um triviale Depots, debian.org
2 12-Mar-2009 10:15 8 KB MarkusMonderkamp to previous | to last
1 12-Mar-2009 10:14 8 KB MarkusMonderkamp to last Rekonstruktion des Forum-Threads "ReleaseFiles"

Page References

Incoming links Outgoing links

Version management

Difference between version and

!!Release Files für Debian Repositories

(Rekonstruktion von [archive.org|http://web.archive.org/web/20070409084456/http://www.debianplanet.org/node.php?id=698])

{{{

>>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

<<{{{
<<

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";
}
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";
}
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 ]

}}}