Is there a way to get zypper (or yast software management) to install an app from repos into a User directory and have it be owned by User; not root. There are some large apps I wish to install and run as User to save space in / partition. I have 100 gigabytes in / and 2 terabytes of User space and I’d like to put the apps there. Else, I need to download and/or compile the apps to run from User.
I doubt you can fool zypper into ding this (maybe by running in a chrooted environment).
I also doubt very much it is wise to do. The RPM packages that are going to be installed expect a complete tree of system directories (/bin/, /usr, /sbin, /etc and what all) waiting for them and part of them will even check if ownership and or permission are set correctly.
I was only planning to do this on standalone apps, e.g., from science repo. Yes, i understand the problems that could arise from apps with many dependencies. I guess this sounds not like a good idea and I will punt on this one.
BTW 100 GB in the / file system (specially if this does not include /home) seems more then enough to me. Even if you add more specialistic software. I e.g. have a 20GB / file system of which ~12GB is used.
[HR][/HR]If you want to install applications on a per-user basis – with the system environment needed for a particular application’s version – use Flatpak.
[HR][/HR]If the application is written in Java then, it should be relatively easy to drop the Java code and directories into a sub-directory of the user’s ‘~/bin/’ directory …
I use a Java application – Home Banking – which is installed system-wide into ‘/opt/’ but, with one plug-in which only one user requires – that user installs the plug-in into their instance of the application …