LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-28-2007, 03:36 PM   #1
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Rep: Reputation: 30
Is It Possible To Make An Image Of Installed Software ?


I just installed software compiling from source and would like to put it on several computers. Is there a way to do an image of just that one install ? I would say no myself, but I would be happy to hear someone say that it can be done and how......
 
Old 02-28-2007, 03:42 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If you know where all the files get installed, then you could certainly gather them up and make an install script. (Or just copy the files by hand) As long as you are porting to identical machines, there should be no problem.
 
Old 02-28-2007, 04:03 PM   #3
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pixellany
If you know where all the files get installed, then you could certainly gather them up and make an install script. (Or just copy the files by hand) As long as you are porting to identical machines, there should be no problem.
Thank you for the prompt reply, that is good news, but seeing I have never done this before I am looking for someone that knows of any documentation (how-to) I could use for either one of the procedures you mention. Or maybe a general step per step on how to accomplish it.

thanks pixellany
 
Old 02-28-2007, 04:11 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
First, do it by hand:
find all the files (depends on the application, of course)
copy to a CD or thumb drive
move to a target computer
copy the files to the right directories

All this just with "cd" + the burning of the CD. The script will simply combine some steps and do however much error-checking you want.
 
Old 02-28-2007, 04:58 PM   #5
The Headacher
Member
 
Registered: Jan 2007
Distribution: Vector Linux
Posts: 90

Rep: Reputation: 15
Can't you just copy the source directory (containing the already compiled stuff) over to the new machine and run 'make install' there? or am I missing something? Packaging is nice, as long as you know how to do it... I don't have the slightest clue how ubuntu users usually make packages though.
 
Old 02-28-2007, 05:06 PM   #6
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
You can also just install it to a temporary location, like i do. This is simple, for this example i will assume a few things, first, that the temporary location is /package/temp and that you have already configured, and compiled (issued 'make') the source. So all thats nessesary is installation, for most packages, the ones that have support for "./configure --prefix=xxx", this is simply a matter of changing that prefix variable after compilation, but before installation. For example, this command should work:

Code:
make prefix=/packages/temp install
if you look at /packages/temp you should see all the installed files in a directory tree matching that of the original prefix variable.
 
Old 02-28-2007, 05:16 PM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
The cleaner would be if they are deb packages, list the package that are installed on your reference machine:
dpkg --get-selection > mylist

And on a machine that you want the software installed, set the repository to point to your server hosting the package. And copy the list file
aptitude update
cat mylist | dpkg --set-selection
aptitude update

And you will get the packages listed in mylist updated from your repository.

Well, that's a clean but maybe more complex solution.. and only works with debian based machines. From rpm you could still do it by playing with alien.

Last edited by nx5000; 02-28-2007 at 05:17 PM.
 
Old 02-28-2007, 05:45 PM   #8
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Original Poster
Rep: Reputation: 30
I know it would most likely be easier and faster just to compile the source on the other 3 manchines also, but I just wanted to see if it could be done with an image. I am always trying to learn new things if possible.
 
Old 02-28-2007, 06:09 PM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Package can be source or binary.
When you install with apt-get or aptitude or synaptics or whatever, it's a binary package that you install.
A binary package is {binaries,configuration files,dependencies information with libraries,..}

Manually, you would need at least those 3.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do Linux have software can make a ISO image file in KDE? explorer1979 Linux - General 5 06-02-2006 02:01 AM
how to make a hd image miner49er Linux - General 5 04-01-2006 11:08 PM
How to make bootable ISO image of whole Linux installed? simber Linux - Newbie 4 11-17-2005 11:55 AM
Ok, got SUS 9.2 installed, but image still does not fill the screen elsmack Linux - Laptop and Netbook 5 03-14-2005 08:30 PM
Installed using ./configure, make, make install, how to remove? EnVoy Mandriva 4 03-10-2004 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:54 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
Open Source Consulting | Domain Registration