LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2013, 10:50 AM   #1
hanamilani
Member
 
Registered: Dec 2008
Posts: 66

Rep: Reputation: 0
How to use an .iso file


Hi,

My system crashed a few days ago on fedora 18 and had to reinstall it. I have upgraded it to fedora 19 right now.
Anyway, before doing anything, I took an image of all the packages I had installed (and they were all in one directory) in an iso fie on a DVD.

My question is: is there any way to use the iso file to get everything back and not re-install all those packages?

Sorry me if it seems so dummy!
 
Old 06-08-2013, 12:29 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,383

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
Let's start over with the real question. Can you take some single directory in Fedora and re-create all the applications that were installed?

I think the answer is no but tell us what you copied.







An iso is a misleading term. Most people use the word .iso as a type of file that represents a cd or dvd. You don't have an iso. You have some disk with information on it.
 
Old 06-08-2013, 12:58 PM   #3
hanamilani
Member
 
Registered: Dec 2008
Posts: 66

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
Can you take some single directory in Fedora and re-create all the applications that were installed?

I think the answer is no but tell us what you copied.
Thanks for your reply.

I had a directory called packages in /home, I had my packages there and I basically installed them all there.
I just made an iso file using "mkisofs" and then burnt them to a dvd by "growisofs"

PS. your signature is just so true but "the boss" himself is a "big pain"
 
Old 06-08-2013, 01:33 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
growisofs is a fork of mkisofs. Which can be a little distracting since debian doesn't have mkisofs anymore. But the options for mkisofs work the same with growisofs for creating iso files. On to a possible answer I guess.

You can mount an iso image and copy the files from it. Depending on the contents of the iso image, audio disc images are a special type.

# mount -t iso9660 -o loop file.iso /mnt/point

Or if you burn the image you can mount the optical drive.

# mount /dev/sr0 /mnt/point

I guess it depends on what's there and how you intend to use it. The iso filesystem has limits. No single file > 4GB. 8.3 character limit for names, which you can workaroud with the juliet / rockridge extension. But if you didn't use that when you created the image, it could mess you up a bit.
 
Old 06-08-2013, 04:29 PM   #6
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 511

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by hanamilani View Post
I had a directory called packages in /home, I had my packages there and I basically installed them all there.
You are telling you had installed packages in a directory called home/packages. what exactly you mean by installed?

If you mean, you have self contained packages like freerapid, zotero etc, which can be executed by prefixing ./ to the executing file, then you can just copy back from iso to its original place or wherever, it will open just fine

But if you had installed packages by using yum, rpm or make install, then you have to repeat the process again, I guess, as the files relating to that particular package will be installed on multiple directories like /bin, /usr/bin, /usr/share/man/ etc.
 
Old 06-08-2013, 07:28 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by mddesai View Post
If you mean, you have self contained packages like freerapid, zotero etc, which can be executed by prefixing ./ to the executing file, then you can just copy back from iso to its original place or wherever, it will open just fine
Except that unless the library versions are all the same, dynamically linked executables might fail.
 
Old 06-09-2013, 12:40 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,383

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
We still need to separate the two issues.

One is the iso deal. That has nothing to do with the need to get the packages back. I have no idea why you did that but it has been posted above as how to mount or access that data now.

I have to make an assumption that you are not an advanced user. A very advanced user could do what you want.

Back to the packages deal. I'd say we kind of think that you won't be able to do this. The most simple answer is that I suspect you have what is wrongly termed an RPM. The Red Hat Package Manager is a sort of cookbook for adding an application. The problem is the cookbook might at some point tell the installer to look at a different page. If you don't have access to that page then the application install will fail as noted above.
You can use this disk as a source. It will allow you to do one by one installs of those apps if you also have access to the internet. I'd assume there might be a way to automate this but I don't play with fedora enough to know.

See this for some ideas on how an .rpm works. https://en.wikipedia.org/wiki/RPM_Package_Manager


I suppose that if we called it the RHPM, we'd get sued.

Last edited by jefro; 06-09-2013 at 12:43 PM.
 
  


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
how to make non bootable iso file and iso via linux command line?? npubudu Linux - Newbie 2 02-02-2009 12:31 AM
how to make dvd iso file from cd iso files. hocheetiong Linux - General 1 09-29-2007 06:21 AM
mount .iso (image) file and read *.avi file smartdragonfly Linux - Software 2 12-21-2006 05:48 AM
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 10:58 PM
Does anyone Know how to open either .iso.rz or these .iso.xdelta,.iso.bz2,.iso.lzma?? maximalred Debian 5 06-09-2004 07:15 AM


All times are GMT -5. The time now is 12:21 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration