Is there way to install two instances of the same application?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












What if I would like to have different versions of the same application ? Or even the same version twice ?
I heard there some new technology ("Modularity") in Fedora 28 that allows to do that.

Are there any way to do that in Ubuntu now ?







share|improve this question
















  • 1




    do you mean different binaries entirely or are you more looking at just having different configs for two instances? For the latter case, you can just execute programs as a different user within your x session, for the former you can just clone the binaries to a new folder and execute from there. I don't know of any official versioning system that would work like that, but there are ways of getting around it if you need to.
    – sbergeron
    May 15 at 2:02






  • 1




    as I understand it snaps allow this, or you can have a version installed as deb, and version(s) as snaps. if installed from tarball you could have lots of versions. my system has python2 & python3 installed...
    – guiverc
    May 15 at 2:03






  • 1




    @sbergeron I guess both binaries and config, I mean the way it is in WIndows: you just install stuff two times and it's just in different folders - so simple. And thanks for advice.
    – R S
    May 15 at 2:07











  • @RS never knew you could do that on windows, which programs does that happen for?
    – sbergeron
    May 15 at 2:39










  • @sbergeron When you choose destination folder you can type another name for 2nd installation and there gonna be two instances of the same apps in different folders.
    – R S
    May 15 at 5:54














up vote
1
down vote

favorite












What if I would like to have different versions of the same application ? Or even the same version twice ?
I heard there some new technology ("Modularity") in Fedora 28 that allows to do that.

Are there any way to do that in Ubuntu now ?







share|improve this question
















  • 1




    do you mean different binaries entirely or are you more looking at just having different configs for two instances? For the latter case, you can just execute programs as a different user within your x session, for the former you can just clone the binaries to a new folder and execute from there. I don't know of any official versioning system that would work like that, but there are ways of getting around it if you need to.
    – sbergeron
    May 15 at 2:02






  • 1




    as I understand it snaps allow this, or you can have a version installed as deb, and version(s) as snaps. if installed from tarball you could have lots of versions. my system has python2 & python3 installed...
    – guiverc
    May 15 at 2:03






  • 1




    @sbergeron I guess both binaries and config, I mean the way it is in WIndows: you just install stuff two times and it's just in different folders - so simple. And thanks for advice.
    – R S
    May 15 at 2:07











  • @RS never knew you could do that on windows, which programs does that happen for?
    – sbergeron
    May 15 at 2:39










  • @sbergeron When you choose destination folder you can type another name for 2nd installation and there gonna be two instances of the same apps in different folders.
    – R S
    May 15 at 5:54












up vote
1
down vote

favorite









up vote
1
down vote

favorite











What if I would like to have different versions of the same application ? Or even the same version twice ?
I heard there some new technology ("Modularity") in Fedora 28 that allows to do that.

Are there any way to do that in Ubuntu now ?







share|improve this question












What if I would like to have different versions of the same application ? Or even the same version twice ?
I heard there some new technology ("Modularity") in Fedora 28 that allows to do that.

Are there any way to do that in Ubuntu now ?









share|improve this question











share|improve this question




share|improve this question










asked May 15 at 1:36









R S

7251130




7251130







  • 1




    do you mean different binaries entirely or are you more looking at just having different configs for two instances? For the latter case, you can just execute programs as a different user within your x session, for the former you can just clone the binaries to a new folder and execute from there. I don't know of any official versioning system that would work like that, but there are ways of getting around it if you need to.
    – sbergeron
    May 15 at 2:02






  • 1




    as I understand it snaps allow this, or you can have a version installed as deb, and version(s) as snaps. if installed from tarball you could have lots of versions. my system has python2 & python3 installed...
    – guiverc
    May 15 at 2:03






  • 1




    @sbergeron I guess both binaries and config, I mean the way it is in WIndows: you just install stuff two times and it's just in different folders - so simple. And thanks for advice.
    – R S
    May 15 at 2:07











  • @RS never knew you could do that on windows, which programs does that happen for?
    – sbergeron
    May 15 at 2:39










  • @sbergeron When you choose destination folder you can type another name for 2nd installation and there gonna be two instances of the same apps in different folders.
    – R S
    May 15 at 5:54












  • 1




    do you mean different binaries entirely or are you more looking at just having different configs for two instances? For the latter case, you can just execute programs as a different user within your x session, for the former you can just clone the binaries to a new folder and execute from there. I don't know of any official versioning system that would work like that, but there are ways of getting around it if you need to.
    – sbergeron
    May 15 at 2:02






  • 1




    as I understand it snaps allow this, or you can have a version installed as deb, and version(s) as snaps. if installed from tarball you could have lots of versions. my system has python2 & python3 installed...
    – guiverc
    May 15 at 2:03






  • 1




    @sbergeron I guess both binaries and config, I mean the way it is in WIndows: you just install stuff two times and it's just in different folders - so simple. And thanks for advice.
    – R S
    May 15 at 2:07











  • @RS never knew you could do that on windows, which programs does that happen for?
    – sbergeron
    May 15 at 2:39










  • @sbergeron When you choose destination folder you can type another name for 2nd installation and there gonna be two instances of the same apps in different folders.
    – R S
    May 15 at 5:54







1




1




do you mean different binaries entirely or are you more looking at just having different configs for two instances? For the latter case, you can just execute programs as a different user within your x session, for the former you can just clone the binaries to a new folder and execute from there. I don't know of any official versioning system that would work like that, but there are ways of getting around it if you need to.
– sbergeron
May 15 at 2:02




do you mean different binaries entirely or are you more looking at just having different configs for two instances? For the latter case, you can just execute programs as a different user within your x session, for the former you can just clone the binaries to a new folder and execute from there. I don't know of any official versioning system that would work like that, but there are ways of getting around it if you need to.
– sbergeron
May 15 at 2:02




1




1




as I understand it snaps allow this, or you can have a version installed as deb, and version(s) as snaps. if installed from tarball you could have lots of versions. my system has python2 & python3 installed...
– guiverc
May 15 at 2:03




as I understand it snaps allow this, or you can have a version installed as deb, and version(s) as snaps. if installed from tarball you could have lots of versions. my system has python2 & python3 installed...
– guiverc
May 15 at 2:03




1




1




@sbergeron I guess both binaries and config, I mean the way it is in WIndows: you just install stuff two times and it's just in different folders - so simple. And thanks for advice.
– R S
May 15 at 2:07





@sbergeron I guess both binaries and config, I mean the way it is in WIndows: you just install stuff two times and it's just in different folders - so simple. And thanks for advice.
– R S
May 15 at 2:07













@RS never knew you could do that on windows, which programs does that happen for?
– sbergeron
May 15 at 2:39




@RS never knew you could do that on windows, which programs does that happen for?
– sbergeron
May 15 at 2:39












@sbergeron When you choose destination folder you can type another name for 2nd installation and there gonna be two instances of the same apps in different folders.
– R S
May 15 at 5:54




@sbergeron When you choose destination folder you can type another name for 2nd installation and there gonna be two instances of the same apps in different folders.
– R S
May 15 at 5:54










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Two roads to look at here, neither seamless but both functional.



For multiple configs, what you can do for traditional binaries is to create a new user. When you want to run a second config of a given program, execute it from terminal as that user. Do an su <user> in a terminal and then launch the program from there. All the config files for that program will be grabbed from that user's home directory.



For different versions or modified parallel binaries, things get a bit messier.
If you want a specific version for legacy purposes, that isn't too hard. Just install the version you specifically want as discussed here and then copy the folder in /lib or /usr/lib to a new one in the same parent directory under a different name. Now, you can safely update the original app and still launch the legacy version by launching it's executable under the directory you cloned.



It doesn't make too much sense to have two different versions, both updating with one behind by some amount, but unfortunately that behavior isn't officially supported as of yet on Ubuntu (though who knows what new features will come with snaps/flatpaks and the like.)






share|improve this answer
















  • 2




    Snaps do support having multiple versions installed at the same time (by default it keeps the previous couple of versions around on upgrade, IIRC), but doesn't support running both at the same time.
    – muru
    May 15 at 3:42










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036337%2fis-there-way-to-install-two-instances-of-the-same-application%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Two roads to look at here, neither seamless but both functional.



For multiple configs, what you can do for traditional binaries is to create a new user. When you want to run a second config of a given program, execute it from terminal as that user. Do an su <user> in a terminal and then launch the program from there. All the config files for that program will be grabbed from that user's home directory.



For different versions or modified parallel binaries, things get a bit messier.
If you want a specific version for legacy purposes, that isn't too hard. Just install the version you specifically want as discussed here and then copy the folder in /lib or /usr/lib to a new one in the same parent directory under a different name. Now, you can safely update the original app and still launch the legacy version by launching it's executable under the directory you cloned.



It doesn't make too much sense to have two different versions, both updating with one behind by some amount, but unfortunately that behavior isn't officially supported as of yet on Ubuntu (though who knows what new features will come with snaps/flatpaks and the like.)






share|improve this answer
















  • 2




    Snaps do support having multiple versions installed at the same time (by default it keeps the previous couple of versions around on upgrade, IIRC), but doesn't support running both at the same time.
    – muru
    May 15 at 3:42














up vote
0
down vote













Two roads to look at here, neither seamless but both functional.



For multiple configs, what you can do for traditional binaries is to create a new user. When you want to run a second config of a given program, execute it from terminal as that user. Do an su <user> in a terminal and then launch the program from there. All the config files for that program will be grabbed from that user's home directory.



For different versions or modified parallel binaries, things get a bit messier.
If you want a specific version for legacy purposes, that isn't too hard. Just install the version you specifically want as discussed here and then copy the folder in /lib or /usr/lib to a new one in the same parent directory under a different name. Now, you can safely update the original app and still launch the legacy version by launching it's executable under the directory you cloned.



It doesn't make too much sense to have two different versions, both updating with one behind by some amount, but unfortunately that behavior isn't officially supported as of yet on Ubuntu (though who knows what new features will come with snaps/flatpaks and the like.)






share|improve this answer
















  • 2




    Snaps do support having multiple versions installed at the same time (by default it keeps the previous couple of versions around on upgrade, IIRC), but doesn't support running both at the same time.
    – muru
    May 15 at 3:42












up vote
0
down vote










up vote
0
down vote









Two roads to look at here, neither seamless but both functional.



For multiple configs, what you can do for traditional binaries is to create a new user. When you want to run a second config of a given program, execute it from terminal as that user. Do an su <user> in a terminal and then launch the program from there. All the config files for that program will be grabbed from that user's home directory.



For different versions or modified parallel binaries, things get a bit messier.
If you want a specific version for legacy purposes, that isn't too hard. Just install the version you specifically want as discussed here and then copy the folder in /lib or /usr/lib to a new one in the same parent directory under a different name. Now, you can safely update the original app and still launch the legacy version by launching it's executable under the directory you cloned.



It doesn't make too much sense to have two different versions, both updating with one behind by some amount, but unfortunately that behavior isn't officially supported as of yet on Ubuntu (though who knows what new features will come with snaps/flatpaks and the like.)






share|improve this answer












Two roads to look at here, neither seamless but both functional.



For multiple configs, what you can do for traditional binaries is to create a new user. When you want to run a second config of a given program, execute it from terminal as that user. Do an su <user> in a terminal and then launch the program from there. All the config files for that program will be grabbed from that user's home directory.



For different versions or modified parallel binaries, things get a bit messier.
If you want a specific version for legacy purposes, that isn't too hard. Just install the version you specifically want as discussed here and then copy the folder in /lib or /usr/lib to a new one in the same parent directory under a different name. Now, you can safely update the original app and still launch the legacy version by launching it's executable under the directory you cloned.



It doesn't make too much sense to have two different versions, both updating with one behind by some amount, but unfortunately that behavior isn't officially supported as of yet on Ubuntu (though who knows what new features will come with snaps/flatpaks and the like.)







share|improve this answer












share|improve this answer



share|improve this answer










answered May 15 at 2:14









sbergeron

1,97852139




1,97852139







  • 2




    Snaps do support having multiple versions installed at the same time (by default it keeps the previous couple of versions around on upgrade, IIRC), but doesn't support running both at the same time.
    – muru
    May 15 at 3:42












  • 2




    Snaps do support having multiple versions installed at the same time (by default it keeps the previous couple of versions around on upgrade, IIRC), but doesn't support running both at the same time.
    – muru
    May 15 at 3:42







2




2




Snaps do support having multiple versions installed at the same time (by default it keeps the previous couple of versions around on upgrade, IIRC), but doesn't support running both at the same time.
– muru
May 15 at 3:42




Snaps do support having multiple versions installed at the same time (by default it keeps the previous couple of versions around on upgrade, IIRC), but doesn't support running both at the same time.
– muru
May 15 at 3:42












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036337%2fis-there-way-to-install-two-instances-of-the-same-application%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

Running the scala interactive shell from the command line

Do not install recommended packages of dependencies