LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-22-2013, 06:59 AM   #1
minyor
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Redirect an app resource folder from system /usr/share to /home/user/[app]/usr/share


Hi all! I new on this forum and have a question.

I'd like to have ability to install a new version of any application (gimp, inskape, codeblocks, whatever..) on GNU/Linux system for testing purpose alongside with old stable one (installed by package manager) without a need to uninstall it first.

(If assuming that I have no problems with libraries dependencies).
I know that I can simple unpack '*.deb' or '*.rpm' file/files into some directory, say /home/user/appl and then create simple starting shell script wich will add binary path (/home/user/appl/usr/bin) and shared objects path (/home/user/appl/usr/lib) into the environment variables: 'PATH' and 'LD_LIBRARY_PATH' correspondingly.

But how can I specify a program resources (/home/user/appl/usr/share) path?

I had searched the environment variable for this in the google but found nothing so far. Without specifying it, new version of an application do load resources for old version of app. and thus not works properly.

I read that if you compile a program from source code, and if I understand it correctly, you can specify program's whole local 'root' directory (like: /opt/a/usr, /opt/a/usr/bin, /opt/a/usr/share, ...) using 'make --prefix=/opt/a'. If so, can I somehow change that '--prefix' to already compiled executable binary file so it would load resources not from '/usr/share' but from '/home/user/appl/usr/share'?

If either of this is not an options then can you please help and give me some other better options if any to achieve my goal. Thanks.

I use Ubuntu 12.10 64bit system.
 
Old 04-23-2013, 12:00 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

if you don't what to recompile, the easiest approach might be to use a chroot. Variations on the following search might be of use:

https://duckduckgo.com/?q=linux+use+...+test+software

Evo2.
 
Old 04-23-2013, 06:44 AM   #3
minyor
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

if you don't what to recompile, the easiest approach might be to use a chroot. Variations on the following search might be of use:

https://duckduckgo.com/?q=linux+use+...+test+software

Evo2.
Hi. Thank you for your respond.
I actually always thought about chroot as a command that used only for
booting process of the linux system, i.e. on earlier stages of booting kernel or something..

But now I'll give it a more close look and try to investigate.
Thanks for the link, it seem good place to start.
 
  


Reply



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
Share access to single folder in user home dir? duffme Linux - Security 1 11-13-2011 11:29 PM
Error when extracting Folder to usr/share/theme GypsyPants Linux - Newbie 6 05-04-2009 05:02 AM
App to keep track of /usr/share/doc stuff? drudge Linux - Software 3 02-20-2009 08:17 AM
/usr/share sulekha Ubuntu 2 12-30-2008 08:58 AM
/usr/share - What's the point? Makaelin Slackware 5 09-02-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration