Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by peter7089
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
it depends.
Would tend to agree.
Quote:
Originally Posted by JeremyBoden
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"
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.