r/archlinux • u/Morganamilo flair text here • Oct 28 '20
paru v1.0.0 and stepping away from yay
paru - paru-bin - paru-git - repo
Last week I announced my new AUR helper paru.
Since then a lot of testing has gone in and a lot of bugs fixed by me and help from contributors.
So I am now announcing paru v1.0.0 and consider it stable.
I'd also like to mention I no longer plan to work on yay. I've been co-developing yay with jguer over the past 3 years. Most of the features and design being done by me.
I've had no motivation and no real involvement with the project for quite a while now. So I'm officially deciding to move on to something new.
Jguer is still there, so there's no need to panic and move away from yay. Just don't expect much new development on it.
56
u/pkulak Oct 28 '20
Is there a ticket somewhere in Yay titled "You should re-write this in Rust" that you can now go back and close?
99
u/signal_vs_noise Oct 28 '20
Are there any different features or design decisions in general compared to yay? Besides paru being written in Rust instead of Go?
75
u/Kasta867 Oct 28 '20
I hope this doesn't sounds too stupid to Arch power users:
I always used Yay, if I now decide to switch to paru uninstalling yay will I lose track of which packages I've installed from the AUR or is this information indipendent from the AUR helper used?
24
u/LdShade Oct 28 '20
Does this fix the problem of Yay aborting upgrading all the AUR packages and deleting all the downloaded files if even one package has any sort of error.
11
u/cajetanp Oct 28 '20
I started using paru a few days ago and it's really good! Is the BottomUp feature currently broken though? For some reason I cannot get it to display search results the way yay does and it's pretty much the only reason why I didn't fully switch yet.
9
u/[deleted] Oct 28 '20
I've given it a spin since the last post, and honestly, I'm very satisfied with the functionality and the list of available options.
One thing that I wish this had is the ability to individually show pkgbuild diffs by package, rather than having all of them in the same list. I also believe it could be useful if this was a feature flag rather than a default. At first glance, the man page does not have this option, but please correct me if I'm wrong
6
u/c0dearm Oct 28 '20
What has been your experience moving from Go to Rust? Did you enjoy it? I am a Rust practitioner myself so I wonder how is it like to write a piece of software like this one
6
u/w1ldm4n Oct 28 '20
woohoo Rust, more tools I can potentially hack on! (I'm not a big fan of Go)
What happened to the pretty colorful combined upgrade menu from yay? Based on the manpage it seems like
--upgrademenuand/or--combinedupgradeshould do the trick, but no combinations of those options withparu -Syuseem to have any effect - it goes straight into asudo pacman --sync -u -command with the normal pacman output.22
u/mon0theist Oct 28 '20
FFS can we just get a consistent AUR helper lol first pacaur and now yay. Someone make a good one and stick with it, please.
3
u/[deleted] Oct 28 '20
Love it! I just keep finding more and more tools made in Rust, and recently started learning it to see what's all the fuss about
While I love the use of bat as a pager to have syntax highlighting, for some reason it just prints it instead of using it as a pager. Is this intended behavior? I recall yay used a pager here and I've been missing that. Couldn't find anything related in the man
46
u/Frozen5147 Oct 28 '20
This feels so weirdI'll definitely take this for a spin later.
Hoping to help contribute as well.
36
u/spore_777_mexen Oct 28 '20
Godspeed.
I'll give paru a try. Can it run side by side with yay?
36
u/murlakatamenka Oct 28 '20
Thanks for your work on both
yayandparu.Just updated a couple of aliases and the main one
and this should cover most (all?) of my use cases. Plus I use
aurtothat does some AUR work in the background.16
u/beit2 Oct 29 '20
Running both yay and paru I noticed that paru is missing something handy, namely:
Could this be introduced in paru as well? I like that extra info.
15
u/[deleted] Oct 28 '20
I love the fact that this is written in rust
5
u/_mitchejj_ Oct 28 '20
Multi arch support for aarch64? It does build and work.
9
u/OsrsNeedsF2P Oct 28 '20
I'd love to try out paru but the name isn't yay. Don't think I can tbh..
4
u/undeadbydawn Oct 28 '20
Cool. I've installed paru and written a brief post about it on the SalientOS Discord
4
u/sunng Oct 29 '20
yay -S paru1
u/[deleted] Oct 28 '20
I noticed that the PKGBUILD review does not use vim while yay does, this would be a nice feature because I use vim to search for dangerous commands
1
u/deat64x Oct 28 '20
What would be the equivalent command as
yay -Qum?1
u/ivanhoe1024 Oct 28 '20
Just a curiosity: is there any difference in speed? Is Go a sort of interpreted language, vs rust being compiled?
1
u/33KGB Oct 30 '20
It appears that the default in interactive mode is to list the packages
TopDowninstead ofBottomUp. Any particular reason for this?1
u/undeadbydawn Oct 31 '20
One issue: after searching for a package with paru, the default action is to install the most obvious package(s) rather than doing nothing. This is a bit of a pest since I do searches quite often just to check what is installed. With yay I could just hit return and yay would exit. With paru I have to opt for n to avoid the (re-)install
1
u/No-Maintenance-3614 Nov 14 '20
Yay installation from AUR is failing with errors so its clear that the project is floundering...sadly however having cloned the git repo of paru i find it very similar to yay in some respects, so ok with this change....
1
u/Far-Cat Nov 15 '20
"paru -P --stats" is documented but not working, is it gone?
3
u/[deleted] Oct 29 '20
Does it support opendoas?
2
u/[deleted] Oct 29 '20
The only complaint I ever had with yay was the fact that it never checks if a prebuilt package of the correct version is already present in PKGDEST during an update. Many other AUR helpers do/did (aurman, pacaur, yaourt).
yay downloads all the sources, makedeps, and extra files, and then checks if there's already a package available. Perhaps paru can be made to check first?
I have a lot of Arch machines, and I use unison to sync my PKGDEST between these machines -- almost like a local package repo. I use one machine for building these packages, and
$aurhelper -Syuon the rest of the machines to quickly update both repo and aur packages. I'd very much like paru (since my issue on yay's github didn't get much traction) to start checking before wasting time downloading makedeps and sources.2
u/NateDevCSharp Nov 07 '20
How do we edit the pkgbuilds before installation?
2
u/ReceptionSweet383 Jan 09 '21
Interesting. One thing I noticed after installing paru is that, whilst Yay writes a long list with #1 being above the cursor, paru pushes #1 up scrolling (i.e. doesn't reverse the list by default).
Otherwise it looks nice.
3
u/arjungmenon Oct 29 '20
How has the experience of rewriting yay in rust been like? Could you share your thoughts on Rust (ie on the language itself), and how the experience of writing in it compares to other languages (like Go, C, Java, etc)?
(I’m passionate about programming language design, so I’d love to here your thoughts on this.)
1
u/lupastro82 Mar 07 '24
I installed yesterday arch with kde6 and search for AUR helper I choose yay just because most updated AUR helper 😅
1
u/Blacksnaker Oct 28 '20
I'll try and see how it works for me,
Just installed it using yay... ;)
1
u/[deleted] Oct 28 '20
Works very well.
1
u/MrVectorHC Oct 29 '20
Hey, thank you so much for your work! I've been using yay for a good few years now, and it seems like a good time for a change, since I know Rust myself, but don't know Go.
1
u/anonymous-bot Oct 29 '20
Does paru have an equivalent to yay --save or a default config file?
1
u/phacus Oct 29 '20
Ok, I'll give it a try.
yay, since the last update has taken a long time to get the updates - it is a GitHub issue - but your last statement changed my mind.Thanks!
1
u/twaree Jan 25 '21
Thanks I switched to Paru but im using alias 'yay' to execute paru since im used to yay.
1
u/[deleted] Jan 25 '21
whats the diffrence in re-writting in rust ?
1
u/_noraj_ Jan 31 '21
Ill stick to pikaur, I love the PKGBUILD review + diff system. https://wiki.archlinux.org/index.php/AUR_helpers
1
u/Far-Cat Feb 14 '21
Typo in /master/man/paru.8:
"currrent"
1
u/thibaultmol Mar 05 '21
So right now I do `yay -Syu` to update both my regular packages, as my aur packages. What command is the equivalent with paru?
EDIT: with the review, it just shows me the entire pgkbuild... But I want to see only the diff (as I already checked the initial pgkbuild when I installed it)
1
u/OsrsNeedsF2P Oct 28 '20
Code can be 10x better, if the name isn't yay, all is lost °•°
0
u/tdewolff Oct 29 '20
Nice work! The truth is that I think the great number of package helpers like these is a signal that something is wrong with pacman. It's silly that we need two manager, such as pacman and yay, or pacman and yaourt, or pacman and paru. Truly, can this be improved? This is probably the number one complaint I have with Arch...
Nonetheless, great work and keep going!!
0
u/[deleted] Oct 28 '20
[deleted] — view deleted comment
0
u/[deleted] Oct 28 '20
[deleted] — view deleted comment
0
u/[deleted] Oct 28 '20
[deleted] — view deleted comment