Is there an easy way to create portable apps, perhaps using apt-get?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there an easy way to create portable apps, perhaps using apt-get?
Here's my dilemma:
I'm using Debian Squeeze on an XO laptop, which has only 256 megs of ram and only 1gb of storage space.
For a commander-like file manager, I'd like to use the very ancient emelfm (not emelfm2).
Problem is, even when I add a woody or etch archive to my apt.sources file, I get error messages that emelfm requires obsolete dependencies which would interfere with my system.
So, is there an easy way that I could install emelfm and its ancient dependencies in its own folder, perhaps in /opt, where it cannot interfere with the rest of my system?
(BTW: I'm only using emelfm as one example. There have been other times where the ability to install something as a portable app would have been very useful to me.)
So, is there an easy way that I could install emelfm and its ancient dependencies in its own folder, perhaps in /opt, where it cannot interfere with the rest of my system?
Not so much an easy way, but an alternate way.
Download the source files for the application and it's dependencies. Run "./configure -help" to get a list of configuration options. In those options you will find options that allow you to specify where to install things, such as where to put the executable, libs, etc. It will, without doubt, take some trial and error to get it all worked out.
Do some google searching for "alternate installation prefixes" for additional reading on the subject.
I'm using Debian Squeeze on an XO laptop, which has only 256 megs of ram and only 1gb of storage space.
For a commander-like file manager, I'd like to use the very ancient emelfm (not emelfm2).
Problem is, even when I add a woody or etch archive to my apt.sources file, I get error messages that emelfm requires obsolete dependencies which would interfere with my system.
So, is there an easy way that I could install emelfm and its ancient dependencies in its own folder, perhaps in /opt, where it cannot interfere with the rest of my system?
(BTW: I'm only using emelfm as one example. There have been other times where the ability to install something as a portable app would have been very useful to me.)
If way suggested by bigrigdriver doesn't work (It's not always easy to build ancient software on modern Linux - gcc now is a lot stricter) you can try following:
- Install on the spare box or in the VM Linux version on which your program can be installed without to much fuss.
- Install your program
- Use statifier (http://statifier.sf.com) or Ermine (http://magicErmine,com) to create self-containing executable.
Then just copy it to the target system - it should work.
Both statifier and Ermine pack into self-containing exe original executable and all it's shared library.
Statifier is licensed under GPLv2+, Ermine is commercial.
On the other hand statifed executable don't like too much system with memory randomization, but ermine-packed behave well on those systems
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.