Re: How do I create a mirror from my CDs
On Tue, Nov 19, 2002 at 05:24:12PM +0800, debian@computerdatasafe.com.au wrote:
> I've googled. I've found scripts that don't Work For Me. I've found the APT
> howto and not understood the little information I could see there.
>
> I've got seven CDs burned myself from the ISO images I downloaded.
>
> Unpacking them is no problem, I can mount -o loop,ro with the best of them, and from there I can
>
> tar cC /mnt/cdrom | tar xpC /var/ftp/pub/linux/debian
>
> and recursively chmod and rm TRANS.TBLs.
>
>
> I'm new to Debian, not new to Linux.
>
> What I can't figure is precisely how to create those Packages files. What command(s) do I run, and importantly, in what directories?
There's a couple of ways to achieve this...
1. Copy the contents of each CD to a separate subdirectory, and add
seven entries in your /etc/apt/sources.list. An entry might look something
like this:
deb file:/home/debcds/disk1 woody contrib main non-US/contrib non-US/main
2. Make an empty directory, copy CDs into it. Install apt-utils if not
already installed, and run apt-ftparchive to generate Packages.gz and
Sources.gz. Add one entry to /etc/apt/sources/list
I've done option 1, and it works fine. Option 2 was an alternative
suggested when I asked the same question of the list
- Chris
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
Reply to: