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

Re: Making a Mirror from the CDs



On Mon, Sep 02, 2002 at 10:10:16AM -0700, Paul E Condon wrote:
> On Mon, Sep 02, 2002 at 08:54:39AM -0700, Edward C Brunelle Jr wrote:
> > I bought the binary and source CDs for Woody and now have them, 14 CDs in
> > all.  I know there are multiple mirrors but I want to create a very-local
> > mirror using these CDs
> > 
> > My problem is that the debian machine has no CD drive on it normally.  I
> > kludged one on to make the initial installation but I have to remove it. I
> > have a WinXP box with ALL sorts of disk space and AnonFtp and IIS running on
> > it.  I would like to put the CDs onto the WinXP box and point apt to it
> > instead of using apt-cdrom on the Debian box.  I'm willing to use
> > security.debian.org to grab updates, etc.
> > 
> > My question is how do I set this up?  Create a directory called
> > d:\debian\binary and d:\debian\source and copy each of the respective
> > source/binaries CDs into them?  Create a d:\debian and copy everything
> > (binary/source) into it?  It looks like there is some duplication.  How do I
> > set up so I have indices for the entire binary and source repository?  What
> > do I set up as the address in apt to get it to work?
> > 
> I'm working on a similar problem. In my case I want to put the data on a hard
> disk on a Woody machine and access it via nfs. But I think the answer to one
> of your questions is the same:
> 1. refer to Oohara Yuuma email of 5Aug'02 on this list 
> 2. make an entry in your sources.list for each CD copy, place these entries
> before the ones that refer to stuff on the web
> 3. don't worry about merging the info. apt-get update does that internally.
> 
> I'm in the process of setting this up, so I may discover some error in what
> I have said, but not about looking at Oohara's email. That is good info.
> 

Responding to my own post with an issue. Now I tried it, and it works nicely.

On 5Aug Oohara wrote:

If you have an official CD, it already has Packages.gz (or Sources.gz),
so you don't need apt-ftparchive .  If you copied the CD to
/something/archive , the apt line will be

deb file:/something/archive woody contrib main non-US/contrib non-US/main

Replace "deb" with "deb-src" for the source CD.  Remove the non-US
part if your CD is the US version.

----------

I already have an archive containing various other stuff that I want on my
bg4 disk, so I added to it with:

# cd /bg4/archive
# mkdir wdycds
# cd wdycds
# mkdir bin1 bin2 bin3 bin4 bin5 bin6 bin7

and for each of the binary cds I did

# mount /cdrom
# cp -Rv /cdrom/* binN/  #where N=1..7
# umount /cdrom

and I added to the front of /etc/apt/sources.list, seven lines of the form

deb file:/bg4/archive/wdycds/binN woody contrib main non-US/contrib non-US/main

My sources.list already contained a full set of seven deb cdrom: entries and a 
standard set of deb http://... entries. When I did a trial install of a package,
there was only hard disk activity. No CD request, or diald activity. 

Very nice!



-- 
Paul E Condon           
pecondon@quiknet.com    



Reply to: