You are not logged in.

#1 2013-07-31 13:31:47

dnx
Member
Registered: 2013-06-08
Posts: 14

How to update packages from AUR?

Hello,

How do I know there's an update for the packages installed via AUR, is there some way to update the same way as the packages from the official repo?

Offline

#2 2013-07-31 13:37:20

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: How to update packages from AUR?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-07-31 14:16:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to update packages from AUR?

A special kind of packages are the vcs ones e.g. foo-git, where the PKGBUILD doesn't get updated, but there may be new code in the upstream git repo.

Offline

#4 2013-07-31 15:05:41

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: How to update packages from AUR?

Bear in mind as well that,  in the case of more complex helpers like yaourt and its ilk, they usually recieve updates a few days behind Pacman updates.  This means that, every time Pacman receives a major update, yaourt, etc. may not be fully functional for at least a day or two.  And as karol said, none of them (that I know of) automatically update VCS packages.

Offline

#5 2013-07-31 15:41:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to update packages from AUR?

packer can rebuild VCS packages when you pass '--devel' switch, but I don't know if it checks if there's any new upstream development or just goes "oh, it's a git package, let's rebuild it".
According to a comment by x33a https://aur.archlinux.org/packages/packer/ it doesn't work with just pkgver().

Offline

#6 2013-07-31 23:23:57

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: How to update packages from AUR?

Note that there are two questions here:

dnx wrote:

How do I know there's an update for the packages installed via AUR, is there some way to update the same way as the packages from the official repo?

The first is: is there a way to know?
-> This is not difficult for "regular" packages (as opposed to -git etc.). I have a script run periodically which checks for updates to both official and AUR packages and notifies me of anything new. I would have no idea how to add git etc. [The script isn't mine - I just adapted it from bits and pieces.]

The other is: is there a way to update in the same way that official packages are updated?
-> Yes (subject to the qualifications above).

You didn't ask a third question: should AUR packages be updated automatically in the same way as official ones, assuming it is possible?
-> I think the answer is no as it seems to me an unnecessary security risk. Somebody new could have taken over a package, for example, with malicious intent or they might just be less competent etc. If I don't look for changes in the PKGBUILD etc. then I have no way of doing even the most basic sanity check. (I'm not knowledgeable enough to do more than this but I hope I would notice if  there was suddenly an install script which would remove /home, say.]
-> Lots of people would vehemently disagree with me on this.

EDIT: There are especially good reasons to avoid tools which update official and AUR packages in the same way and at the same time since this blurs the distinction and tends to lead to a poorer understanding of the system which can cause headaches (and worse) when major updates occur.

Last edited by cfr (2013-07-31 23:25:27)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2013-08-01 16:14:13

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: How to update packages from AUR?

karol wrote:

packer can rebuild VCS packages when you pass '--devel' switch, but I don't know if it checks if there's any new upstream development or just goes "oh, it's a git package, let's rebuild it".
According to a comment by x33a https://aur.archlinux.org/packages/packer/ it doesn't work with just pkgver().

Didn't know that.  smile  But it always seems strange to rebuild a -git, -svn, -hg, etc. package without glancing over the changelog and bug trackers first.

Offline

#8 2013-08-01 22:44:05

dnx
Member
Registered: 2013-06-08
Posts: 14

Re: How to update packages from AUR?

I didn't thought about that security issue. Well a script that notifies when one of my packages from the AUR gets updated can be useful, I will look into that.
Thank you very much for the answers!

Offline

#9 2013-08-02 06:22:17

ijskegel
Member
From: Netherlands
Registered: 2013-05-08
Posts: 2

Re: How to update packages from AUR?

May I suggest cower for this. It is an excelent AUR helper. See this forum page for more info.

Offline

#10 2013-08-02 10:29:30

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: How to update packages from AUR?

I'm not exactly sure this is what the OP is asking for, but I use:

yaourt -Syua

...of course you have to install yaourt first wink


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#11 2013-08-02 11:03:45

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: How to update packages from AUR?

@sultanoswing,
This is without a doubt gonna work, but check ANOKNUSA's post #4.

Personally, I like to keep things separated, only use pacman for official repo's.

Yaourt, only gets used for aur packs, with this command;

 yaourt -Sbu --aur

Offline

#12 2013-08-02 11:18:04

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: How to update packages from AUR?

ijskegel wrote:

May I suggest cower for this. It is an excelent AUR helper. See this forum page for more info.

I would like to second this.

There is a certain controversy among us Arch users concerning AUR helpers. Some think, that using tools like yaourt is perfectly fine, others say, that using such tools will rip you off essential knowledge needed to fix problems as they arise. Another problem with those helpers is, that the more features they have, the worse and the longer they will break, should the pacman api change. Yaourt is a special case, it is so deeply woven into pacman, that it basically broke every second pacman update during the time I used it.

I suggest you first try to think of a model describing how to update packages, without actually implementing it yourself. Make sure you understand, what happens in the AUR and how this is different from the usual repositories. Then start by using a low-impact helper like cower. Cower allows you to search the AUR, download packages (and dependencies), see a list of updated PKGBUILD's and/or download them on the spot.

Offline

#13 2013-08-02 11:20:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to update packages from AUR?

Awebb wrote:
ijskegel wrote:

May I suggest cower for this. It is an excelent AUR helper. See this forum page for more info.

I would like to second this.

+1


See also https://bbs.archlinux.org/viewtopic.php?id=148896

Offline

#14 2013-08-02 12:48:39

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: How to update packages from AUR?

karol wrote:
Awebb wrote:
ijskegel wrote:

May I suggest cower for this. It is an excelent AUR helper. See this forum page for more info.

I would like to second this.

+1


See also https://bbs.archlinux.org/viewtopic.php?id=148896

If after my reply, you all come with cower, maybe I should try this as well;)

Offline

#15 2013-08-02 12:58:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: How to update packages from AUR?

I used yaourt for a while early on, but was never too happy with it, and really didn't like that I had no idea what it was doing.  It was all "magic" behind the curtain.  For a little while I went to the opposite extreme and had my own bash functions that used only wget and makepkg.  Then I started using cower - it is simple but effective, and does just what I was working on getting my bash functions to do, but it does it much better.  I do still wrap cower in my own ~5 line bash function which is functually not much more than an alias.

And cower should be kept in sync with pacman as it's written by a pacman developer!

Last edited by Trilby (2013-08-02 12:58:18)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#16 2013-08-02 13:22:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to update packages from AUR?

cower is pretty flexible https://bbs.archlinux.org/viewtopic.php … 9#p1306999 while yaourt is rather monolithic.
I also use expac - pacman database extraction utility - for the few packages that have not yet been dropped to the AUR ;P

Offline

#17 2013-08-02 14:01:01

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: How to update packages from AUR?

Thanks for your reply Trilby. First, I only used the manual way of installing, but decided it needed some automation, and used packer. I must say, 'without any problems' until 2013-01-26 glibc and filesystem update. After that I tried to install some things, and had issues. Stepped over to yaourt, and been running it since, also without glitches or problems. You say, you had no idea what it was doing, why? it still has output we can read right, and I still had a feeling of full control over the package.
I already installed cower, and will try it out in the days to come, I recently stepped over to i3, nice to implement this 'low on resources' feature with it.
BTW. thanks for your switch layout script wink

Offline

#18 2013-08-02 14:04:44

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: How to update packages from AUR?

@karol, replying and skyping at the same time, and it takes half an our to write this short post;)
Thanks for the explanation, I will read and try your suggestions later.

sorry for the double post:(

Last edited by qinohe (2013-08-02 14:06:30)

Offline

#19 2013-08-02 14:39:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: How to update packages from AUR?

qinohe wrote:

You say, you had no idea what [yaourt] was doing, why? it still has output we can read right, and I still had a feeling of full control over the package.

To clarify I should temper my description with the fact that I took up yaourt long before I should have.  I had never learned how the aur worked.  Yaourt doesn't really *prevent* a user from knowing what it is doing, but it does make it very easy for a new user to not bother learning what is happening - which is where I was with it.  It worked great when it worked.  When it didn't, it was simply "broken" - I could see no farther than that.  Other tools require a bit more knowledge from the user, so the user can then - at the very least - elaborate what the problem is when there is a problem.

So in short, the flaw is not yaourt, but was in me as the user ... though yaourt did allow that flaw to happily continue.

With this in mind, yaourt's tendency to lag behind pacman updates can be seen as a feature.  It wasn't until I was completely unable to use yaourt that I actually learned how the AUR really works.

Last edited by Trilby (2013-08-02 14:42:57)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#20 2013-08-02 15:34:16

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: How to update packages from AUR?

Yes, I understand you now. Well I think it is good for every user to start the manual way of installing packages from AUR, in fact I still use it. Installed cower the manual way.
Only when a starter, and every body owned that status once, understands what is going on, I would only suggest to try a AUR helper. Thanks.

Offline

#21 2013-08-03 16:37:23

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: How to update packages from AUR?

Since this has quickly turned into one of those threads, let me throw a couple things in.  Here's one prominent user's opinion, which I agree with:

AUR Helpers: Or, “Why you should uninstall Yaourt and embrace makepkg…”

And here's a relevant shopping list thread.

Personally, I use cower, with "alias pacup='sudo pacman -Syu && cower -uv'" in my shell config.  Cower will check for updates to my AUR packages, and leave it up to me to download, build and install them.

Offline

Board footer

Powered by FluxBB