Can you install Linux apps merely by copying directories?

Puppy related raves and general interest that doesn't fit anywhere else
Post Reply
Message
Author
benali72
Posts: 292
Joined: Wed 09 Aug 2006, 17:27

Can you install Linux apps merely by copying directories?

#1 Post by benali72 »

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.

User avatar
TheAsterisk!
Posts: 406
Joined: Tue 10 Feb 2009, 08:52

Re: Can you install Linux apps merely by copying directories?

#2 Post by TheAsterisk! »

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.)

benali72
Posts: 292
Joined: Wed 09 Aug 2006, 17:27

#3 Post by benali72 »

Hey, thanks, @TheAsterisk!. That was just what I needed to know. I'll start poking around and learn more. Thanks.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

You'd have to tell the boot loader program what files to load and where they are.

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#5 Post by starhawk »

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.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#6 Post by Flash »

Oh my, I completely misread the topic. I somehow got it into my head that benali asked about installing Puppy, not apps in Puppy. :oops:

Never mind.

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#7 Post by starhawk »

No worries :)

Post Reply