Skip to content

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 = doas and SudoLoop = 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.

478 points82 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
478 · 99% up
Kind
Text
ID
o7ytpc

Author

14
posts
1.7k
comments
8
media
View profile

83 comments

I just have to say thank you. Paru has been awesome for me :)

107 points

What does paru do that yay doesn't?

38 points

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.

21 points

You can change the command to call for super user permissions in yay for quite a while (afaik even before paru existed)

yay --sudo doas --save
5 points

I think yay development has stopped but I'm not 100% sure. That means a slow death, I guess.

-43 points

yay is 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:

Also friendly reminder that yes yay is still maintained. No there's not any obligation to stop using it.

48 points

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!

2 points

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.

6 points

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.

2 points

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.

way easier to write and maintain

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.

20 points

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.

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.

10 points

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.

7 points
  • Local repo and chroot support

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?

6 points

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...

5 points

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

-7 points
  • sometimes a package update breaks things and you have to revert to an old version until it's fixed. Sometimes the fix takes awhile, and you'd like to update other stuff.
  • if you don't update before installing something new, the worst that can happen is 404 errors if the package or one of its dependencies have changed since the last time you ran pacman -Syu.
2 points

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.conf temporarily either.

/u/dron1885 this is what's wrong with IgnorePkg lol. So what's a better way?

1 points

Thank you for adding doas support. That's the main reason why I switched from yay. I I'm quite happy with paru overall.

4 points

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 :)

3 points

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.

2 points

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.

2 points

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).

2 points

Should I switch from yay to paru?

2 points

As said by OP,

Also friendly reminder that yes yay is still maintained. No there's not any obligation to stop using it.

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)

14 points

Thanks for sharing your opinion, that’s what I meant haha. But yeah, that seems fun, I’ll check it out.

2 points

Been using paru since i moved to arch! Love it, keep up the good work!

2 points

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.

1 points

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

1 points

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.

2 points

What was the impetus for creating paru?

1 points

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.

5 points

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

1 points

It's been an excellent experience, and i'd love to thank you for the hard work

1 points

Thank you so much for this, it's really a great piece of software.

1 points

I switched to paru from yay and I haven't looked back since. :)

1 points

Usually I use pikaur. What do I gain if I use paru in place of pikaur?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.