The time now is Wed 19 Jun 2013, 08:32
All times are UTC - 4 |
| Author |
Message |
benali72
Joined: 09 Aug 2006 Posts: 262
|
Posted: Thu 04 Oct 2012, 16:13 Post_subject:
Can you install Linux apps merely by copying directories? |
|
Back when I used to support Unix (AIX and HP/UX), we sometimes would install a program on a new system merely by copying its directory (and all subdirectories) from a system it was already installed on, over to the target system.
Can you do that with Linux?
Are there any limitations/concerns I should be aware of?
Thank you.
|
|
Back to top
|
|
 |
TheAsterisk!

Joined: 10 Feb 2009 Posts: 399 Location: SE Wisconsin, US
|
Posted: Thu 04 Oct 2012, 16:59 Post_subject:
Re: Can you install Linux apps merely by copying directories? |
|
| benali72 wrote: | Back when I used to support Unix (AIX and HP/UX), we sometimes would install a program on a new system merely by copying its directory (and all subdirectories) from a system it was already installed on, over to the target system.
Can you do that with Linux?
Are there any limitations/concerns I should be aware of?
Thank you. |
Assuming both systems are running the same Linux version, then- basically- very often yes, but not quite always.
Beyond that simple answer, the files for a Linux application aren't always arranged so neatly into a single directory, but might be spread out through the file tree a bit.
This is basically how simple packages work in Linux, though. The difference is that a compressed archive is unpacked and then its contents are dropped into place throughout the file tree rather than a simple directory copy. (More complex packages may execute some commands or a script on installation, but it's not a requirement, necessarily.)
To see what I mean about the packages, you can grab a dot-pet package, rename the *.pet extension to *.tar.gz, and extract it. Poke around a few of them for a bit, and you'll see what I mean.
Beyond that, you may need to update a few things by hand after the fact- MIME-types come to mind, as do menu entries, etc.- but a simple copy works a lot of the time.
TL;DR -- Sometimes it does work, sometimes it doesn't. Give it a try, test it a bit, and mind the bumps in the road.
(On a somewhat related note, simple copying of dependencies (the odd library, an empty but searched-for settings file, etc.) from an old installation of Ubuntu 8.04 was how I got some very critical programs (like my dial-up client) running smoothly on Puppy 412.)
|
|
Back to top
|
|
 |
benali72
Joined: 09 Aug 2006 Posts: 262
|
Posted: Fri 05 Oct 2012, 12:38 Post_subject:
|
|
Hey, thanks, @TheAsterisk!. That was just what I needed to know. I'll start poking around and learn more. Thanks.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9909 Location: Arizona USA
|
Posted: Fri 05 Oct 2012, 17:02 Post_subject:
|
|
You'd have to tell the boot loader program what files to load and where they are.
|
|
Back to top
|
|
 |
starhawk
Joined: 22 Nov 2010 Posts: 1884 Location: Everybody knows this is nowhere...
|
Posted: Fri 05 Oct 2012, 19:18 Post_subject:
|
|
Flash: doesn't that only apply to SFS files, not "okay I'm going to open up this PET package [or whatever, as long as it's an archive of sorts] and put files where they go"?
IIRC a PET package is a modified TGZ (*.tar.gz aka "tarball") so a "manual install" as it's usually called is quite possible. Don't know about SFS -- you'd have to unpack it, and they usually do so into /opt so I'm not sure how exactly it'd work out. Probably just fine but you never know.
_________________ Looking for some oddball hardware - an EZGo MiniPC. See here.
Upup Raring on Atom/Poulsbo is my next system. Puppy rocks like a giant boulder!
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9909 Location: Arizona USA
|
Posted: Fri 05 Oct 2012, 22:32 Post_subject:
|
|
Oh my, I completely misread the topic. I somehow got it into my head that benali asked about installing Puppy, not apps in Puppy.
Never mind.
|
|
Back to top
|
|
 |
starhawk
Joined: 22 Nov 2010 Posts: 1884 Location: Everybody knows this is nowhere...
|
Posted: Fri 05 Oct 2012, 23:23 Post_subject:
|
|
No worries
_________________ Looking for some oddball hardware - an EZGo MiniPC. See here.
Upup Raring on Atom/Poulsbo is my next system. Puppy rocks like a giant boulder!
|
|
Back to top
|
|
 |
|
|
|
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|