I don’t like the mess some software makes when it install in my system so I want to move it to a more appropriate place.
My questions are:
1- Where is the most appropriated directory for this? (some hidden folder made with this purpose, I thought linux had something like this as a standard)
2- How I move it without breaking anything?
The appropriate directory’s are the XDG Base Directory, check this page on arch wiki to move them correctly. You can also use xdg-ninja and it will scan for these extra directories on your $HOME and tell you what you need to do to move them to their appropriate location or not if these directories are hardcoded or cannot be moved.
~/go
is created when compiling go programs, you can change it’s location with the GOPATH environment variable to something likeGOPATH=$HOME/.local/go
, and moving the directory there.Never seen
~/perl5
, could you provide the output ofperl -V
- You don’t 🙃
/s Sorry, I had to 🤣
lol
I see syncthing; I comment this.
OK
Try
xdg-ninja
to learn how to move them (and everything else) away from your home directory.Thanks!
- usually ~/.config/PROGRAM_NAME/
You probably want to look into $XDG_CONFIG_HOME and the freedesktop spec documentation if you are interested in more of where these standards come from:
https://specifications.freedesktop.org/basedir-spec/latest/ar01s02.html(and more generally)
Thanks!