how to extract files from ISO on linux?

11,747

Solution 1

7-zip will do what you want. There is a Linux command-line version of 7-zip.

Midnight Commander (mc from the shell prompt) can read ISO files and extract files/directories. It used to be installed by default in some distros; I'm not sure if it still is.

You could also try xorriso in reverse mode:

one may enable reverse operation of xorriso and copy files or trees to disk:

$ xorriso -acl on -xattr on \
   -indev /dev/sr0 \
   -osirrox on \
   -cpx '/pictures/private/horses*/*buttercup*' \
       /home/her/buttercup_dir -- \
   -extract /sounds /home/her/sounds_from_me

Each copy command processes its files sorted by block address in the ISO image in order to reduce head moves with optical media. This can bring effective read performance near to the raw media reading speed. Consider to enter dialog mode and use commands like -cd , -du , -lsl , -find.

Solution 2

Midnight Commander (mc) seems the best option but it needs the mkisofs (or genisoimage) package to be able to open the image file (with the isoinfo utility).

With mc I've been able to copy the content of an image file without using mount or similar. In my platform 7-zip wasn't available.

Share:
11,747

Related videos on Youtube

Thanh Binh Nguyen
Author by

Thanh Binh Nguyen

Updated on September 18, 2022

Comments

  • Thanh Binh Nguyen
    Thanh Binh Nguyen over 1 year

    I have an ISO file on a Linux machine for which I don't have root access. I am looking for some command or software that would allow me to extract all the files on the ISO without the need for root. Any ideas?

    • Thanh Binh Nguyen
      Thanh Binh Nguyen about 12 years
      mount says it requires root access, btw.
    • rob
      rob about 12 years
      It looks like the 7-zip answer someone else posted was deleted because you mentioned it was Windows-only, but I was going to point out that there is a Linux command-line version of 7-zip.
    • Thanh Binh Nguyen
      Thanh Binh Nguyen about 12 years
      I think the 7-zip answer should be added back and toggled as a good answer, that's what I decided to use eventually (on Linux), and it works perfectly fine. Thanks to whoever gave me the hint about it.
    • zpletan
      zpletan about 12 years
      The relevant package will probably be called p7zip (for Posix 7-ZIP). Also, does file-roller support ISO?
    • rob
      rob about 12 years
      I copied my Linux 7zip comment into my answer, but if the other person undeletes the original 7zip answer, feel free to accept that one.
    • ott--
      ott-- over 11 years
      If you have read access for that iso, you could copy it to an usb stick, boot a live cd on another pc and mount the iso there.
  • HackToHell
    HackToHell about 12 years
    mc is not installed in ubunut :'(
  • rob
    rob about 12 years
    bummer...any luck with xorisso or 7zip?
  • Thanh Binh Nguyen
    Thanh Binh Nguyen about 12 years
    as I said, 7zip works perfectly fine on Linux.
  • rob
    rob about 12 years
    Sorry, I didn't see your other comment before; I guess we posted around the same time.
  • user
    user about 12 years
    This requires root privileges, which the OP does not have on the host in question.
  • Jongosi
    Jongosi over 8 years
    Provided you don't have the 7za executable (CentOS); ISOs are not supported in 7za. You can check supported formats with 7za i.