On 3/20/08, Michael Paulsen <[EMAIL PROTECTED]> wrote:
> Hi ya,
>
> Debian Etch now has over 30 CD's. I'm bored with CD swapping every
> time I want to install a new package. Is it possible to merge the CD's
> to my hard drive and direct APT or DPKG to use the hard drive instead
> of all the CD's when installing new packages? What would the be the
> easiest way to do this?
>
> Thank You,
> mtp5150
>

STATUS: Completed, Solved

Hi Ya,

First off let me thank all of you for providing input, advice, and
support.  I have successfully merged all of the CDs on to a hard drive
partition and it is working with one minor glitch.  I keep getting the
following error, "warning the following packages cannot be
authenticated".  APT-GET INSTALL does allow me to continue, so
everything is working.  I just don't know how to resolve this error
message, yet.

For anyone wanting to do the same, here is what I did;

!!--------------------------------------------------------------------------------------------------------------------------!!
!!  WARING: I'm am an amateur at Debian/Linux use the following at
your own RISK   !!
!!--------------------------------------------------------------------------------------------------------------------------!!

1)  Listed all the .iso files to the text file "filelist.txt" with ls
*.iso > filelist.txt
2)  Edited the text file "filelist.txt" and arranged them in the order I wanted
     (This is not a necessity but I wanted to process them in disk order)
3)  Wrote this script to do the following;
     3a)  Mount each iso file.
     3b)  Copy each iso file to /mnt/maddog2/debian.
     3c)  Unmount each iso file.
     3d)  Repeat until all iso files are done.

---------------SNIP-------------------
#!/bin/bash
#
#  FILENAME: cpfiles
#
#  Short Bash script to:
#      Mount each iso file.
#      Copy each iso file to /mnt/maddog2/debian.
#      Unmount each iso file.
#      Repeat until all iso files are done.
#
#  If someone else is using the script be sure to change all the
directories to match your
#  system.

for file in $(cat /home/michael/filelist.txt);do
        mount -t iso9660 -o loop /home/michael/linux/$file /mnt/old
        cp -R /mnt/old/* /mnt/maddog2/debian/
        umount /mnt/old
done
---------------SNIP-------------------

4)  apt-ftparchive packages ./ | gzip > Packages.gz
     This should probabley be done for;
            ./etch/main/
            ./etch/contrib/
            ./etch/non-free/
    with each resulting Package.gz file moved to;
            ./dists/etch/main/binary-i386/
            ./dists/etch/contrib/binary-i386/
            ./dists/etch/non-free/binary-i386/
    Although, I'm am not 100% certain, as I have not done it, Yet.
5)  In /etc/sources.list create the following and delete or comment
out everything else.
     5a) deb file:/mnt/maddog2/debian etch contrib main non-free
          NOTE: Be sure to change the directory to match your system.

NOTES: 1) The merged CD's required 17G of hard drive space.
             2) During APT package installation I now receive an error message
                 regarding libraries that cannot be authenticated.
APT allows you
                 to accept these libraries without verification, and
so far nothing
                 has gone wrong.
             3) The CD copy process took several hours as well did the
apt-ftparchive command.
                 So be prepared to sit and wait.  Took me most of the
day on my P-III 1gig box.

Thank You,
mtp5150


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to