zpkg icon indicating copy to clipboard operation
zpkg copied to clipboard

AUR Support?

Open Nokeo08 opened this issue 4 years ago • 6 comments

Any plans to support installing from the Arch User Repository?

Nokeo08 avatar Apr 28 '20 19:04 Nokeo08

Thanks for the message, I will take a look!

ihucos avatar Apr 29 '20 07:04 ihucos

Ok, so I am trying to find the optimal way to implement this. I am not quite sure how that would look in the CLI interface maybe: zpkg add --aur packagename ? Any wishes?

I read a little but am not sure how to install an AUR package. Should I use a simple script that does the single steps to install it or use an AUR helper tool - and if AUR helper tool - which one? There seem to be a lot and no clear consensus of the "right one". Overall with zpkg I think in trying to be pragmatic but still unopiniated and not getting too messy with maintaining system administration scripts and stuff on specific distros, So hmmm, yeah, maybe tell me how you would install an AUR package and I go from there.

I am by the way really happy that people are using this and would love to hear how you are using zpkg and listen to any feedback :-)

ihucos avatar May 02 '20 20:05 ihucos

I think --aur would work just fine. The aur is really the reason that I'm interested in zpkg. The arch repository and especially the arch user repository are the best, imo, in the linux world. I'm not always able to use arch though so zpgk would allow me access to the same software even when a can't use the distro of my choice.

For simplicity It would probably be easier to just use a helper. I think there is several of them, but the only one that I know of that is active at all is yay. It should work really similarly to pacman.

Nokeo08 avatar May 04 '20 17:05 Nokeo08

Hey ho,

Ok, so it does not seem to be so easy. The last issue I had was that yay/makepgk refuses to run as root, solvable with complexity, I will leave the issue open, but don't hold your breath :-).

EDIT: I think one of the main design decisions in zpkg is that a non-privileged user gets mapped as root in the zpkg process. So everything inside zpkg must be able to run as root. But calling setuid in zpkg processes is supported, so there is hope. Ideally makepkg/yay would have some --force-root flag.

ihucos avatar May 06 '20 09:05 ihucos

Apparently this was solved in JuNest project using a custom version of makepkg: https://github.com/fsquillace/junest/issues/234, but I really don't know how all this stuff works.

As I work without root in a server, zpkg is being great to me. I still can use programs installed globally, while calling my user-specific ones does not depend on switching to a new environment. Thanks for the great work :)

pedroilidio avatar Dec 12 '20 15:12 pedroilidio

That is really great to hear, that somebody is using this! :-) Ahh yeah, using this custom makepkg should also work in zpkg. It's a pity apparently there is no option to make it not cowardly die when running as UID 0 (which nowadays != "real" root) in the default version.

ihucos avatar Dec 13 '20 12:12 ihucos