I'm trying to install an app from tar.xz. It is portable, meaning I have only to unpack it to some directory and it should run from there as normal user. But where do I unpack it to?
Google recommends /opt
but it is owned by root and I cannot write to it as normal user. If I create a subdirectory there as root and copy the files as root, the apps runs correctly only as root. When run as normal user, it cannot write its own config. Obviously.
So, where should I install it?
ETA The accepted answer in the linked (for some reason) question does not work for me. It suggest /opt
which breaks the app due to permissions.
~/opt/
or~/bin/
would be good choices. But in the end you decide - and add to yourPATH
. – Artur Meinild Nov 16 '22 at 12:05/opt
does not work for me. I think I saw that one already. Comments there suggest to use my normal user home... Sounds funny but I guess I could go with that. Still funny. – sigil Nov 16 '22 at 12:14PATH
). Just because an answer is accepted doesn't mean it's the only true answer - just that it worked for the original poster. – Artur Meinild Nov 16 '22 at 12:15/home/user/opt/
- why isn't that working for you? – Artur Meinild Nov 16 '22 at 12:24