You are not logged in.

#1 2013-10-16 12:38:56

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

[SOLVED] How to update a single AUR package?

I am sorry if this is a real newbie question, but I have searched for the answer and cannot find it.

I have pacman, packer and apper installed at present.

What I would like to do is:

1)  List all the AUR packages installed

# pacman -Qqm

2)  Check the ones that have updates available

3)  Update the ones that I chose to update from the list returned by 2)

I am sure that this is easy but I could do with some help with 2) and 3)

Thanks

Andrew

Last edited by fdservices (2014-01-27 11:57:47)

Offline

#2 2013-10-16 12:42:40

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 757

Re: [SOLVED] How to update a single AUR package?

cower?

Offline

#3 2013-10-16 12:49:37

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

Re: [SOLVED] How to update a single AUR package?

I think packer can do it, if not https://wiki.archlinux.org/index.php/AUR_Helpers

How exactly were you using packer?

Last edited by karol (2013-10-16 12:51:11)

Offline

#4 2013-10-16 12:50:36

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: [SOLVED] How to update a single AUR package?

$ packer -Syu --aur

will do it for you.

Offline

#5 2013-10-16 12:51:27

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: [SOLVED] How to update a single AUR package?

1) skip

2) Something like:

# pacman -Syu
$ yes no | packer -Su

3)

packer -S choose from list returned by 2)

Offline

#6 2013-10-16 12:55:50

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

Re: [SOLVED] How to update a single AUR package?

You shouldn't cherry-pick updates. You should always update all packages.

Offline

#7 2013-10-16 13:04:54

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: [SOLVED] How to update a single AUR package?

Of course not, but he asked that question?

One day one may has a huge, still working aur package and some small non working ones and no time to compile.
But you should know what you are doing and compile that other package asap.

Offline

#8 2013-10-16 13:08:59

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: [SOLVED] How to update a single AUR package?

# packer -Syu --auronly tries to update all AUR packages and does not allow for one package only.

similarly
# pacman -Syu upgrades all packages except AUR

$ yes no | packer -Su  you've lost me on this one, packer -Su does not accept a package name and tries to upgrade all packages except AUR

I think I can do it with pacman -Su --auronly, but it is not too easy.

It returns:

warning: packagename is up to date -- reinstalling

Aur Targets    (1): packagename

Proceed with installation? [Y/n] 

so I could parse the result, answer no if it was up to date and ask if it was not up to date.

Hmm

Andrew

Offline

#9 2013-10-16 13:09:09

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: [SOLVED] How to update a single AUR package?

yaourt -Syua foo

Offline

#10 2013-10-16 13:09:10

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

Re: [SOLVED] How to update a single AUR package?

Sure, e.g. there may be an update that just fixes a bug for the 64-bit architecture. I use 32-bit, so I don't care about this update.

You can ignore packages from the repos and from the AUR, but OP may not be able to discern when it's OK to do so.


fdservices wrote:

I think I can do it with pacman -Su --auronly, but it is not too easy.

I think you mean 'packer' here.

Last edited by karol (2013-10-16 13:10:57)

Offline

#11 2013-10-16 13:11:55

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: [SOLVED] How to update a single AUR package?

In an ideal world we might be able to update all AUR packages without further thought, but, I am afraid, there are several up there which simply do not work as expected without a few tweaks to the PKGBUILD, and yes, I do post the problems, and no, they are not always corrected.

So on the principle of Arch users look after themselves (that is probably my principal) I take control and look before leaping smile

Thanks for the comments

Andrew

Offline

#12 2013-10-16 13:12:50

SidK
Member
Registered: 2011-03-03
Posts: 116

Re: [SOLVED] How to update a single AUR package?

jdarnold wrote:
$ packer -Syu --aur

will do it for you.

--auronly

If you want to programmatically find the available updates without applying them, then, as wirr said,

yes no | packer -Syu --auronly

No need to update pacman beforehand.

There is also aurcheck which lists out of date AUR packages.

Edit: wow, people wrote a lot of posts while I was typing this

Last edited by SidK (2013-10-16 13:13:42)

Offline

#13 2013-10-16 13:13:49

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: [SOLVED] How to update a single AUR package?

Hi karol

Sure, e.g. there may be an update that just fixes a bug for the 64-bit architecture. I use 32-bit, so I don't care about this update.

You can ignore packages from the repos and from the AUR, but OP may not be able to discern when it's OK to do so.

fdservices wrote:

    I think I can do it with pacman -Su --auronly, but it is not too easy.

I think you mean 'packer' here.

Yes, I think I did smile

Andrew

Offline

#14 2013-10-16 13:25:04

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: [SOLVED] How to update a single AUR package?

Please can someone explain this to me

yes no | packer -Syu --auronly

What does "yes no" pipe to packer?

OK I have it - "yes" is the command and it repeatedly send "no" to  packer - that is really counter-intuitive!

There are some very clever people out there. wink

Andrew

Offline

Board footer

Powered by FluxBB