Operating System - Linux
1748204 Members
3299 Online
108759 Solutions
New Discussion юеВ

How to fetch rpm from an ISO image file w/o mounting

 
SOLVED
Go to solution
skt_skt
Honored Contributor

How to fetch rpm from an ISO image file w/o mounting

Any one has any idea/tool for taking/extracing some rpms from ISO image w/o mounting it on a cd.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: How to fetch rpm from an ISO image file w/o mounting

Shalom,

I know only one way:

mount -o loop /mnt/iso

To a mount point.

You could also burn the CD on a windows box and copy your rpms across the network.

iso is not like tar, I don't think you can extract files out of it with a single command.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mike Stroyan
Honored Contributor
Solution

Re: How to fetch rpm from an ISO image file w/o mounting

Loop mounting the ISO file is certainly the easier way. But it is possible to find file names and extract files using the "isoinfo" command.

$ isoinfo -f -i hardy.iso
/README.diskdefines;1
/_disk
/autorun.inf;1
...
$ isoinfo -x '/autorun.inf;1' -i hardy.iso > autorun.inf
Steven Schweda
Honored Contributor

Re: How to fetch rpm from an ISO image file w/o mounting

> [...] the "isoinfo" command.

For the record, "isoinfo" is included in the
"cdrtools" package.

ftp://ftp.berlios.de/pub/cdrecord/

(I normally use something recent from the
"alpha" subdirectory there.)
skt_skt
Honored Contributor

Re: How to fetch rpm from an ISO image file w/o mounting

those were great answers!!