steven-omaha / pacdef

multi-backend declarative package manager for Linux
GNU General Public License v3.0
332 stars 13 forks source link

Why symlinks, and where should they link to? #44

Closed thcrt closed 1 year ago

thcrt commented 1 year ago

I love this project! I just had two questions:

1) Why are symlinks seemingly suggested, and 2) if I use them, where should the original group files be stored?

thcrt commented 1 year ago

My instinct would be to put them in /etc/pacdef, but pacdef group export puts them in ~ by default.

steven-omaha commented 1 year ago

Thanks for the kind words!

Why are symlinks seemingly suggested

Because that's how I envisioned the tool being used. Have a dotfiles-repository that I check out on different hosts, from there pacdef group import whatever I need. But they are not a must.

if I use them, where should the original group files be stored?

There is no one answer to this. I have a dotfiles repo, for me it's ~/dotfiles, with a submodule ~/dotfiles/pacdef. You can put them under /etc/pacdef, but if you are on Arch Linux, that does not make a lot of sense, since AUR wrappers typically refuse AUR updates if you are root, and you would need to be root to put anything there.

pacdef group export exports them in the current working dir. You can also add an optional path argument.