250 Days of Paru
So it's been 250 days since the original release of paru you can find my original post about it here.
For those unaware paru is a "new" AUR helper. Originally meant to be a rewrite of yay, it's bound to be familiar to people of have used yay or other pacman wrapping AUR helpers.
Paru has seen a good amount of popularity and so far there's been 30 other contributors which I'm happy to see.
There's also been good amount of new features since the initial release. The notable ones being:
- Print PKGBUILD
- Print AUR comments
- Print news on upgrade
- Local repo and chroot support
- Support for signing packages
- Syntax highlighting with bat
- Support for doas with
Sudo = doasandSudoLoop = true
I consider paru mostly feature complete at this point. The only things on my roadmap are localization and 32 bit binaries. Feel free to add to the discussion.
I've also decided to set up GitHub sponsors with some goals to see what people think and see if that goes anywhere. 5 poeple have already sponsored me so a big thank you to them.
For those interested in doing pacman/AUR things in rust. Paru is actually made up of several libraries which are in use in by a handful of other projects.
This includes official rust libalpm bindings for those who want to hack around with libalpm. There's also stuff for reading pacman.conf, srcinfo files, querying the AUR, downloading pkgbuilds, and dependency solving
Also friendly reminder that yes yay is still maintained. No there's not any obligation to stop using it.
Edit: I forgot to mention, I've created #paru on libera.chat for discussion/basic help.
Edited 26 Jun 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 478 · 99% up
- Kind
- Text
- ID
- o7ytpc
83 comments
I just have to say thank you. Paru has been awesome for me :)
What does paru do that yay doesn't?
It avoids being the sole dependent of the go compiler on my machine. (and those of anyone else who isn't a go fanatic)
Fwiw,
yay-binexists for those who don't like downloadinggojust for the buildSure, but it also takes minutes to built in Rust every time it’s updated.
Most important is doas support. I switched to paru a while ago because it had doas support while yay only supports sudo. Though I don't know if the feature has been added to yay after I switched.
someone give me a tldr on doas and why should I use it?
You can change the command to call for super user permissions in yay for quite a while (afaik even before paru existed)
I think yay development has stopped but I'm not 100% sure. That means a slow death, I guess.
yayis still being actively maintained, it's just considered feature complete so isn't really getting any big new enhancements.OP says in the post above for example:
Why do people insist on spreading incorrect information without checking it first? Just check! If you're not sure, don't spread misinformation?
Sorry, I don't mean to jab at you specifically/personally, just the general behavior. Have a nice day!
“paru -Gp” is my new fav. Thanks for such a fantastic program.
What does it do
Prints the PKGBUILD for the given package in the AUR.
paru -Gcprints the comments.I've been using it for a couple months now and even though it's basically yay programmed in a different language, it just feels faster. Not sure if that's just me or if it really is faster.
It's written in Rust, which is technically faster than Go. Also AFAIK, the Linux Kernel has some features written in Rust because it's just as fast as C but way easier to write and maintain.
The speed differences between programming languages are unlikely to matter in this sort of application. Most expensive operations are either just waiting on the network, or delegating to tools like tar/make/pacman that are written in other languages anyway. If there really are speed differences between different AUR helpers, it's more likely to be the result of different design decisions that aren't specific to the programming language used.
Whether Rust is easier to write than C is a bit controversial, but it's certainly true that Rust makes it easier to write "memory safe" code without any "undefined behavior", which is very important in the kernel.
Not yet, in fact there's currently no support for Rust yet in the mainline kernel. There are definitely people interested in changing that though, for the reasons you gave.
Not yet, if i remember correctly. It's a hot topic and the way has been paved, but i'm not aware of any rust code being accepted at this time. It's only a matter of time, though.
I'm not a programmer so I didn't know that. Thank you.
I was just trying to use this the other day, and I couldn't figure out how to.
I already have some AUR packages installed, how would I move them to a local repo and/or build new packages in there?
when i first tried paru, i didn't see an option to exclude any packages from the upgrade if i choose to. i wanted to know if that is available...
What's wrong with
IgnorePkginpacman.conf?It is now.
It is not. The arch way of updating is that you update everything. This is to ensure that all packages can depend on all other packages being up to date. Updating only a select number of packages would often break things, since package dependencies would be out of date.
This is also why you should update prior to installing a new package
In the general case yes. For AUR packages that's not really true.
yea i never used it i thought there is a slight chance it might come handy some day...
Building librewolf takes over 3 hours on my computer - Firefox 89.02 changed basically nothing, so I don't want to rebuild. There are valid reasons not to upgrade a specific AUR package, and I don't want to edit
pacman.conftemporarily either./u/dron1885 this is what's wrong with
IgnorePkglol. So what's a better way?Well done.
Thank you for adding doas support. That's the main reason why I switched from yay. I I'm quite happy with paru overall.
Undecided. Yay kinda works fine and I'm not sure I've seen Paru being different enough to warrant a change in my workflow. Please feel free to persuade me :)
Nothing wrong in trying it
Been using it since the end of January, works great
What is your view on the dependency bloat arising from bundling hundreds of packages by various people into Paru, and reimplementing evented networking in Rust (futures, tokio), HTTP (hyper), compression (async-compression), TLS (hyper-tls uses native-tls and openssl but still manages to have a dozen dependencies), and bundling a HTML parser (kuchiki) with 50 or so dependencies for comments?
Transitive dependencies is one of my short-term concerns about Rust's build time, and long-term concerns about the ease of supply-chain attacks.
Would be nice if some of the big ones, reqwest, tokio and so one could be dynamic libs. Though there's no stable ABI but maybe eventually.
I don't think number of dependencies is a good metric. Rust encourages a project to be split up into multiple crates so one project can be made of many crates.
Most of the deps in paru are rather popular or made by reputable people. The html parser is made by servo for example.
I've poked around at random dependencies. So far, all the ones I've looked at are by people trusted in the community (and hopefully won't betray that trust). The biggest issue I've found so far (aside from "bloat" or code that probably isn't necessary to build Paru's functionality in a minimal app) is depending on Servo crates that haven't been updated in years, using dependencies like nodrop which have been obsoleted by ManuallyDrop and MaybeUninit. Also kukichi 0.8.1 uses cssparser 0.27.2 from 2019 (even though there are newer releases).
Should I switch from yay to paru?
As said by OP,
I personally use paru because it's written in rust, so go isn't installed every time I update. Development also seems to be much more active in paru, so there are some cool new features as listed in the original post
Theoretically yay will be more stable as you will see less big enhancements and and additions (though that may be flawed logic)
Thanks for sharing your opinion, that’s what I meant haha. But yeah, that seems fun, I’ll check it out.
Have been using Paru from the beginning. It's been great! Thank you!
Been using paru since i moved to arch! Love it, keep up the good work!
I used paru for a bit on my new install and it was pretty great, but after a few weeks I switched back to pacaur for two reasons: I like how pacaur prompts me before it shows me the PKGBUILD, and I like how I don't have to press enter after hitting Y/N for confirmations.
I could probably take a look through paru docs to see if I could get the first thing, but not sure how I'd go about the second.
I'll probably give it another go at some point, as the rest of the experience was great, but I guess I just got really used to pacaur.
Only problem is pacaur is unmaintained.
The only one similar to it I found was pikaur
Pacaur is not unmaintained.
installing from source is a pain bc a dependency uses a default features reqwest client, which has a lot of dependencies
unfortunately it's not up to you to change that but it would be nice if the aur resolver would use isahc which static links to curl
edit: nvm i see you in the raur gitlab history now, neat. I'm interested to hear your take on that
The only default feature of reqwest is tls. Reqwest is just a big library as well as its use of tokio.
There is a curl backend for raur that cuts out that dep but paru makes heavy use of async so for me it's worth the trade off of size/compile time for async support.
okay i should read more of the code soon
What was the impetus for creating paru?
There was a bunch of breaking changes I wanted to make with yay. I also started to get annoyed at go and how annoying it was to do some stuff. Jguer was also too busy to want to review the big changes so I started a rewrite of yay in rust.
Jguer ended up not wanting to push that as the new yay so it became a seperate project.
Thank you for responding 👍 I was just going through the docs on github.
This'll be fun to take a closer look at. Great application for Rust. Nice job!
...and another reason to checkout libera chat
Deleted before we saved it.
Why do you use paru over yay
Thank you ヽ༼ຈل͜ຈ༽ノ
It's been an excellent experience, and i'd love to thank you for the hard work
doas support, awesome!
Thank you so much for this, it's really a great piece of software.
I switched to paru from yay and I haven't looked back since. :)
Usually I use pikaur. What do I gain if I use paru in place of pikaur?
I've recently switched from yay to paru and haven't looked back. Thank you.