LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 06:22 AM   #1
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

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, 06:25 AM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
A VM is an isolated environment.
 
1 members found this post helpful.
Old 04-04-2017, 06:41 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
it depends.
 
Old 04-04-2017, 07:11 AM   #4
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

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, 07:17 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

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

Dependencies : If libraries, multiple versions can often live together.
 
Old 04-04-2017, 08:38 AM   #6
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

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

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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, 11:50 AM   #8
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
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 12:23 PM. Reason: "definitely" instend of "defiantly" + added "more"
 
Old 04-04-2017, 01:42 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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, 12:57 AM   #10
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

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, 07:07 PM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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



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

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

All times are GMT -5. The time now is 09:08 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