-   Linux - Newbie (
-   -   Where do you keep portable apps? (

Lixt 10-15-2011 03:53 AM

Where do you keep portable apps?
In which folder do you think it's good to keep programs which don't install themselves (portable etc.)?

eSelix 10-15-2011 07:32 AM

"/usr/local/share" is good for this. Also symlink to starting application in "/usr/local/bin" for convenience.

Lixt 10-16-2011 04:44 PM

But in my distro only root can change "/usr/local/share". So an app started by a user in "/usr/local/share" can't change files in it's own directory.

jschiwal 10-16-2011 04:51 PM

There is also a $HOME/bin/ directory. It is usually used for your own scripts, but could be used for your own apps. Otherwise, it doesn't matter. Put them in a directory you create in your $HOME/ directory and add that directory to your $PATH/ variable.

Lixt 10-17-2011 05:37 AM

Thanks. $HOME/bin/ was already in $PATH/. But many portable apps are inside their folders and thus aren't in $PATH/. Should I add every app's folder to $PATH/ also?

eSelix 10-17-2011 03:24 PM

Better not. $PATH has length limit, also every path will be searched after you or script invoke most commands, so less is better. Create a directory for applications in your $HOME for example $HOME/apps and extract these archives there within apllication name as directory. Then create symlink to starting application in your $HOME/bin.

Lixt 10-18-2011 05:51 AM

I placed multifile applications in $HOME/bin/application_name and symlinked the starting applications in $HOME/bin. I hope that'll be all right :)

jschiwal 10-19-2011 03:13 AM

That should work. Why so many "portable" apps? Most repos probably have what you need, using common library versions. Apps built from source install themselves under the /usr/local/ hierarchy.

Lixt 10-20-2011 02:45 AM

I'm not sure if I'll have a lot of "portable" apps but I've only started using Linux and I already have a few of them. And they are meant to be "portable". For example Virtual Volumes View or XnViewMP.

SecretCode 10-20-2011 02:57 AM

I install such apps into /opt - including xnviewmp.

Most well-behaved programs don't need write access to the folder they are installed in, and will create what they need in the user's home folder (I have ~/.xnviewmp). Only in rare cases (for example: Wunderlist) do you have to install the code into your home folder.

All times are GMT -5. The time now is 06:12 PM.