Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


Closed Thread
  Search this Thread
Old 12-21-2010, 03:06 PM   #1
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Rep: Reputation: 30
Getting a list of file install locations with make install?

EDIT: Moderator, please delete this thread. I accidentally posted it in the incorrect section. The new location for this thread is here:

Last edited by R00ts; 12-21-2010 at 03:18 PM. Reason: Incorrect forum
Old 12-21-2010, 03:18 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Almost all Makefiles support the DESTDIR argument, which let's you install the package into a given directory. So you could do something like:

$ mkdir ./pkg
$ make install DESTDIR=./pkg
The hierarchy of the entire program would then be installed under ./pkg as if it was /. You can then use tar to package all of those files up and then deploy that on the target system. There are also tools like CheckInstall that can do similar things, but I am not sure if they are still actively maintained.
Old 12-21-2010, 03:19 PM   #3
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Original Poster
Rep: Reputation: 30
Ah, that's right. Brilliant, thanks mate!
Old 12-22-2010, 04:48 AM   #4
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
As per post #1, closed.

Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script to install list of packages in a file jayasekar Linux - Software 4 01-22-2010 02:56 AM
how to install rpm packages of the same version in multiple locations bvpurandare Linux - General 2 03-18-2009 05:14 PM
Rtirq script install locations?? stratotak Linux - Newbie 0 02-25-2009 01:39 AM
NFS/FTP locations for suse 10.1 network install dcraft Linux - General 1 07-24-2006 08:03 PM
install perl File::List module on sarge cccc Debian 1 05-31-2006 07:43 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration