LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-04-2017, 07:22 AM   #1
peter7089
Member
 
Registered: May 2016
Posts: 86

Rep: Reputation: Disabled
Possible to install dependencies not system wide?


If i want to install older version of a program that require older versions of dependencies and i don't want to downgrade my system wide installed dependencies is it possible to install the program with its dependencies in somehow isolated environment and make the program use this dependencies instead of the system wide installed dependencies?
 
Old 04-04-2017, 07:25 AM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,656

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
A VM is an isolated environment.
 
1 members found this post helpful.
Old 04-04-2017, 07:41 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
it depends.
 
Old 04-04-2017, 08:11 AM   #4
peter7089
Member
 
Registered: May 2016
Posts: 86

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JeremyBoden View Post
A VM is an isolated environment.
I don't mean VM but something that will work similar to how portableapps.com apps work for Windows. They have all dependencies in the portable app folder, like Pidgin for example.
 
Old 04-04-2017, 08:17 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,329

Rep: Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583
Quote:
.... install older version of a program
? Which program ?

Dependencies : If libraries, multiple versions can often live together.
 
Old 04-04-2017, 09:38 AM   #6
peter7089
Member
 
Registered: May 2016
Posts: 86

Original Poster
Rep: Reputation: Disabled
My question is if it is possible in general, not for specific program.
 
Old 04-04-2017, 11:40 AM   #7
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,656

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by peter7089 View Post
I don't mean VM but something that will work similar to how portableapps.com apps work for Windows. They have all dependencies in the portable app folder, like Pidgin for example.
Sounds like a recipe for dependency hell if you do this for more than a couple of programs.

Anyway it says
Quote:
PortableApps.com Updater - Your Apps Are Up To Date - With PortableApps.com, you don't need to worry about making sure your software is up to date. Just click a button and the updates are downloaded and installed without messing up your settings and saved files.
You just want any Linux live distro that supports persistence from USB such as Ubuntu etc.
 
Old 04-04-2017, 12:50 PM   #8
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,438

Rep: Reputation: Disabled
Quote:
Originally Posted by peter7089 View Post
If i want to install older version of a program that require older versions of dependencies and i don't want to downgrade my system wide installed dependencies is it possible to install the program with its dependencies in somehow isolated environment and make the program use this dependencies instead of the system wide installed dependencies?
What exactly do you mean by a "isolated environment"?

As the only thing that I think of by that, is what JeremyBoden, has already suggested (being a VM).

Quote:
Originally Posted by Habitual View Post
it depends.
Would tend to agree.

Quote:
Originally Posted by JeremyBoden View Post
Sounds like a recipe for dependency hell if you do this for more than a couple of programs.
Would definitely agree.

As I don't think we can give you a proper answer based on what you have asked so far, so maybe provide us with a more specific question.

Last edited by jsbjsb001; 04-04-2017 at 01:23 PM. Reason: "definitely" instend of "defiantly" + added "more"
 
Old 04-04-2017, 02:42 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,004
Blog Entries: 1

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
A chroot is a partially isolated environment. If you compile from source you can have all the deps in $HOME/ and do a lot of funkly $PATH and $LD_* stuff to run that version with libs from the $HOME. But it's a lot simpler to use a vm / docker / chroot. Or to have a dedicated cheap device like a raspberry pi configured for the older software needs.
 
1 members found this post helpful.
Old 04-05-2017, 01:57 AM   #10
peter7089
Member
 
Registered: May 2016
Posts: 86

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
A chroot is a partially isolated environment. If you compile from source you can have all the deps in $HOME/ and do a lot of funkly $PATH and $LD_* stuff to run that version with libs from the $HOME. But it's a lot simpler to use a vm / docker / chroot. Or to have a dedicated cheap device like a raspberry pi configured for the older software needs.
Is it possible to do this with debootstrap?
 
Old 04-05-2017, 08:07 PM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,004
Blog Entries: 1

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Originally Posted by peter7089 View Post
Is it possible to do this with debootstrap?
debootstrap installs a minimal system intended to be used as a chroot. I use it to do full installs. But you have to install a kernel before booting it, plus set a root password, and other admin steps normally done by an installer. It could be done with debootstrap. Depending on how much effort you want to put into the process.
 
  


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
[SOLVED] How do you install programs system-wide? mercuryargentum Slackware 5 01-29-2014 11:54 AM
how to install John the Ripper jumbo from source system wide zagreus360 Linux - Software 13 04-23-2012 07:05 PM
How to have a Local Install have Precedence Over a System Wide Install? haziz Linux - Software 2 01-05-2012 11:53 AM
*system-wide* KDE install, how? webvandals Linux - Software 5 03-06-2004 12:48 AM
Restoring system-wide settings to post-install condition Ac. K. Linux - Software 2 01-15-2004 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:47 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration