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

Re: installing packages from iso file

On Mon, Jan 21, 2008 at 07:00:27PM +0100, Paul Csanyi wrote:
> Hello!
> I installed Debian Etch on a PC box with netinstall CD.
> Now I want to remove CD driver from this box.
> But I want before that to copy the netisntall.iso file
> to HDD on that box.
> So, when I have removed the CD drive, I want that,
> that apt can use this iso file to install some packages.
> How can I do that?
> I try Google, but cant find a solution.
> I think I must first to mount these netinstall.iso with
> loop device:
> mount -o loop -t iso9660 netinstall.iso /mnt/iso
> but this is not the right way because I want to automate
> this, so I think I must edit fstab for this issue:
> /dev/lo         /media/cdrom0   iso9660 loop    0       0
> Then I must run 'apt-cdrom add', so I run it:
> LANG=en_EN sudo apt-cdrom add
> Success!

> Well, I think I find a solution, but what do you think,
> am I right?

It will probably be cheaper and simpler to just copy all the pool/ and
dist/ from the CD to a directory on your disk and use it as an apt

Again - if you actually need to install anything from there.

Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend

Reply to: