Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 388  / 1 Year ago, thu, december 29, 2022, 9:40:57

I'm new to Linux and trying multiple variants of Ubuntu (standard, Mint, Pop, etc.). Unfortunately, every OS is isolated on different partitions, with separate settings, user groups, etc. and programs have to be installed each time I install a new OS. I would like to have a primary OS (Ubuntu LTS) and then all subsequent OS's refer to the primary OS for user profiles, program installations, etc. - Is this possible?


My purpose is twofold: 1) ease of trying new distros without hassling with setup/maintenance of multiple profiles and programs, and 2) save on disk space by reducing duplicate files.


I know how to access files and mount folders between each distro's partition, but is there a way to trick the OS into thinking the primary partition is where it should be looking for everything?


I don't mind trying things that are experimental, as this is a new system and I have no critical data on it yet.


More From » dual-boot

 Answers
6

Theoretically it can be possible, but only on a case by case basis, ie. it might work for some applications, while it won't work for others.


It has a chance to work only if exactly the same application package version is used in both distributions. Then you can try the following:



  1. install the application in your "primary" distribution

  2. check which files are contained in the package (you can do it with dpkg-query -L packagename)

  3. on the other distribution, create symbolic links in place of all these files, that point to respective files on the mounted partition of the "primary" ditribution

  4. optionally, you can similarly create symbolic links for configuration files/folders of that application in your /home/user directory, but this can be tricky, as it is not always easy to know which particular files/folders the application uses to store config.


In my opinion, even if this may work, it's not worth the effort, as you have to do it for every application manually.


[#1799] Friday, December 30, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iething

Total Points: 49
Total Questions: 127
Total Answers: 112

Location: Luxembourg
Member since Tue, Jan 25, 2022
2 Years ago
;