LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-03-2004, 12:58 AM   #1
Eux
Member
 
Registered: Apr 2004
Location: Spain
Distribution: Debian (Woody+Sarge)
Posts: 54

Rep: Reputation: 15
Post Debian Sarge & 14 CD's of packages...


Hi folks,

I wanted to ask you guys if there is any alternative to prevent from insert over and over again, the CD's of the Sarge distro when installing a program or package.

See my problem is that I do not have internet at home so I rely mainly in the CD's I have downloaded - but I find really annoying that every time I install ( say for instance mplayer) anything I have to switch between the 14 CD's available in order to complete the installation.

Is there an easier way to do this?

A while ago I heard the possibility to keep the CD's .iso images in the harddrive ( or an external drive ( or something )) and tell the /etc/apt/sources.list file where to look for.

Any ideas?


Thanks.......
 
Old 11-03-2004, 08:11 AM   #2
justin_p
Member
 
Registered: Jan 2004
Location: Virginia, USA
Distribution: slack 13; I've used it all :)
Posts: 433

Rep: Reputation: 30
There should be a way that you could copy the content of the discs and put them in your own repository for apt on your box as well. Search google and here for creating a local respoitory.
 
Old 11-03-2004, 01:16 PM   #3
Gamezace
Member
 
Registered: Apr 2004
Location: NOVA, VT
Distribution: gentoo
Posts: 88

Rep: Reputation: 15
Its interesting that you would choose Debian if you don't have an internet connection...
 
Old 11-03-2004, 11:06 PM   #4
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
I think Debian is probably a pretty good choice for a non-internet connected system, since so much is included in the distro, but I'm not really that experienced with other distros.
 
Old 11-04-2004, 07:06 PM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
If you copy the whole of the CDs you need to a spare partition (and at 14 CDs, you'll need a good 10Gb spare, at least), you can add that to your /etc/apt/sources.list file. You may want to comment out the CD entries with a # as well. Here's an example:
Code:
deb file:///media/sargecds sarge main
# deb file:///cdrom/ sarge main
# deb ftp://ftp.uk.debian.org/debian/ sarge main
You should then run apt-get update. With any luck you will now not be asked to pop in any CDs.

I am unsure of the exact tree structure necessary, but I would have thought that if you copy every CD exactly as it's found then you should be OK. If not, you could always try making ISOs of the CDs and loopmounting them, but that's a whole different story!
 
Old 11-05-2004, 01:13 AM   #6
Eux
Member
 
Registered: Apr 2004
Location: Spain
Distribution: Debian (Woody+Sarge)
Posts: 54

Original Poster
Rep: Reputation: 15
Thymox,...thank you for the time spared in helping me on this subject.


However, although I am almost understanding the way it should be done in order to function properly, I will need a little more guidance.

For instance:

if I created a separate partition and on that partition I have a folder ( say sarge-cd1-packages ) and then copy the content of each cd to each corresponding folder ( not as an image file ) and then making an entry in the /etc/apt/sources.list like:

- - > deb file://hda4/sarge-cd1-packages/sarge main

the I could get the machine to retrieve all the packages fron that source? Would that be it?

If I were to try creating the .iso images how would that differ from this method described above?

Would you know of a good HowTo - Guide regarding this issue?


Thanks a lot"!




Eux
 
Old 11-06-2004, 01:44 AM   #7
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
a good solution

Hi, I 'll give a good solution i am using it , very nice solution!!!

Create a webserver on a machine , say example at adresse 192.168.10.10
on this machine put all your CD's on a directory say , /var/www/Debian , I suppose that the default directory for the web is /var/www,
put all the CD in this directory( if you have extra deb software, you can add them here or in another directory, the procedure is the same) ( /var/www/Debian )
create the Packages.gz with the command : go to the /var/www

cd /var/www
dpkg-scanpackages Debian /dev/null | gzip > Debian/Packages.gz

that is all in the web server.


Now if you want to install or to add a package in any machine which of course can access to the web server put the following command in the /etc/apt/sources and nothing else

deb http://192.168.10.10 Debian/

that all, don't forget the / at the end

you can add to youreat for example for other software which are not
 
Old 11-06-2004, 09:31 PM   #8
Eux
Member
 
Registered: Apr 2004
Location: Spain
Distribution: Debian (Woody+Sarge)
Posts: 54

Original Poster
Rep: Reputation: 15
Thank you abd_dela.


Now if I understand correctly, what you are telling me is to create and configure a web server; once done that 'copy' all the .deb packages in the /var/www/Debian directory ?

Is that it?

Don't I have to do any extra / especial tweaking?

Thanks for you help"!
 
Old 11-07-2004, 05:21 PM   #9
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
I thought about the ISO setup a while ago when I wanted access to local Mandrake RPM repositories (I wasn't on broadband then) and I wanted to maintain the ISO files of the distro (and contribs, and PLF) so I could burn them for friends.

Basically what I did with Mandrake was I kept the ISO files on the harddrive, created separate mount points for each one (/mnt/install-cds/disc-X), added entries for each file into the fstab, ensuring that I give it an option "loop":
Code:
/mnt/files/isos/mandrake-9.1-disc-1.iso /mnt/install-cds/disc-1 iso9660 noauto,users,loop 0 0
Then I would mount each directory and use Mandrake's package manager thingy to define some new RPM repository, ensuring that I selected "removable media" for each. This way whenever I needed to install something from the "CDs", it'd loop-mount the ISO file in the appropriate place, pull the RPMs from it and then umount it again.

Now, I know we're talking about Debian systems here, but the principle should work in the same way. Create/keep the ISO files of your 14CDs on your harddrive somewhere accessible, create mountpoints for each one, create separate entries for each one in your fstab, edit your sources.list accordingly.

If you have no need to keep full ISO images on your drive, you just want to keep the debs, then I can see no reason why you can't just copy them (keeping the directory structure in tact, perhaps) somewhere and then have your sources.list file point there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Sarge - old packages? J_K9 Debian 4 06-15-2005 06:27 AM
Debian Sarge 15 CD's? Dirty_Ink Debian 9 05-12-2005 04:11 AM
List of 6600 packages on Debian Sarge bamboo_spider Debian 4 04-21-2005 10:49 AM
Creating CD's from a Debian Sarge DVD fischer1000 Debian 4 08-17-2004 03:24 PM
Debian sarge cd's Zig Debian 10 08-15-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration