You are not logged in.
Hello everyone, I want to invite the community to try an AUR package manager (AURoot).
was created for ROOT users, it is unlikely that a SUDO user will achieve satisfactory results, do not try it.
Do not run the program as ROOT, you will be prompted for the password when necessary.
With this program you should be able to:
- download, compile and install the package from a link in one step, more or less ;-)
- install packages compiled by the program on one or more computers.
- update AUR packages installed on the device.
If you could send me translations into your language, I would be very grateful, this will be included in the program as soon as possible.
I hope this helps :-)
Offline
It must me Halloween, because that is frightening.
Pray tell, why?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
It looks like a super-convoluted way to not use PACMAN_AUTH and use su instead of sudo despite sudo being installed - or OP hasn't found the "-i" switch.
@johnca1, do you generate these scripts using some semi-AI generator?
Offline
It must me Halloween, because that is frightening.
Pray tell, why?
I don't understand the question, but if you're trying to say that this is a joke, no, it's not.
I already understood, it is because of the use of ROOT, it shouldn't be scary because the only lines that use ROOT are the same or similar to this:
su -c "pacman -Syu --needed ${dep_missing[@]} ${header_missing[@]}"
su -c "pacman -U ${install_pkg[@]}"
Last edited by johnca1 (2023-11-01 10:48:18)
Offline
It looks like a super-convoluted way to not use PACMAN_AUTH and use su instead of sudo despite sudo being installed - or OP hasn't found the "-i" switch.
@johnca1, do you generate these scripts using some semi-AI generator?
every line of command came out of my keyboard. the answer is no.
Offline
I think ewaller misunderstood the subject - i did before briefly looking at the script.
It kunda suggests an approach where you're cinstantly logged in as root and, because makepkg will refuse to operate as UID0, wrap it into a regular-user session.
Did you understand the rest of my post and explicit "su pacman" calls are absolutely not required here and preferring su over sudo is down to a single environment variable?
Offline
I think ewaller misunderstood the subject - i did before briefly looking at the script.
It kunda suggests an approach where you're cinstantly logged in as root and, because makepkg will refuse to operate as UID0, wrap it into a regular-user session.Did you understand the rest of my post and explicit "su pacman" calls are absolutely not required here and preferring su over sudo is down to a single environment variable?
It seems that you are trying to demonstrate that the program is useless, in fact what I myself do with my creations before publishing.
First run the program in a virtual machine and then I will be happy to answer any questions.
To observe all the operations use this line:
bash -x auroot.sh --1
Offline
Makepkg, when used properly, will already prompt for a password when necessary and it will use sudo or su to escalate privileges as needed based on what is available on the system. There is no need for *any* command to be explicitly run as root for handling AUR packages.
Though this does lead to an idea for a worthwhile project: a patch to makepkg to also check for `doas` as an alternative to `sudo` before falling back on `su`. Though I've not searched at all to see if this is already underway somewhere.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
The script /is/ useless, at least when it comes to the "use su instead of sudo" part.
@Trilby, you can just export PACMAN_AUTH or set it in your makepkg.conf
(Though obviously could be defaulted upstream)
Offline
Though this does lead to an idea for a worthwhile project: a patch to makepkg to also check for `doas` as an alternative to `sudo` before falling back on `su`. Though I've not searched at all to see if this is already underway somewhere.
PACMAN_AUTH was introduced to avoid layer upon layer of checking for an appropriate program.
Offline