LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-15-2011, 02:53 AM   #1
Lixt
LQ Newbie
 
Registered: Oct 2011
Location: Russia
Distribution: Debian Testing amd64 KDE
Posts: 26

Rep: Reputation: 0
Question 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.)?
 
Old 10-15-2011, 06:32 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,223

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
"/usr/local/share" is good for this. Also symlink to starting application in "/usr/local/bin" for convenience.
 
Old 10-16-2011, 03:44 PM   #3
Lixt
LQ Newbie
 
Registered: Oct 2011
Location: Russia
Distribution: Debian Testing amd64 KDE
Posts: 26

Original Poster
Rep: Reputation: 0
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.
 
Old 10-16-2011, 03:51 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
1 members found this post helpful.
Old 10-17-2011, 04:37 AM   #5
Lixt
LQ Newbie
 
Registered: Oct 2011
Location: Russia
Distribution: Debian Testing amd64 KDE
Posts: 26

Original Poster
Rep: Reputation: 0
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?
 
Old 10-17-2011, 02:24 PM   #6
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,223

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
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.
 
1 members found this post helpful.
Old 10-18-2011, 04:51 AM   #7
Lixt
LQ Newbie
 
Registered: Oct 2011
Location: Russia
Distribution: Debian Testing amd64 KDE
Posts: 26

Original Poster
Rep: Reputation: 0
Thanks.
I placed multifile applications in $HOME/bin/application_name and symlinked the starting applications in $HOME/bin. I hope that'll be all right
 
Old 10-19-2011, 02:13 AM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
1 members found this post helpful.
Old 10-20-2011, 01:45 AM   #9
Lixt
LQ Newbie
 
Registered: Oct 2011
Location: Russia
Distribution: Debian Testing amd64 KDE
Posts: 26

Original Poster
Rep: Reputation: 0
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.
 
Old 10-20-2011, 01:57 AM   #10
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
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.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are Java apps really that portable... ?! Alexvader General 3 10-01-2010 01:33 PM
Is there an easy way to create portable apps, perhaps using apt-get? roystonlodge Linux - Software 4 12-11-2009 01:52 PM
Portable Apps for Linux? fudam Linux - General 6 01-06-2008 01:48 PM
Get around MS software when using Windows with portable apps sludink Linux - News 0 02-17-2006 04:08 PM
LXer: Get around MS software when using Windows with portable apps LXer Syndicated Linux News 0 02-13-2006 11:16 AM


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

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