You are not logged in.

#1 2009-03-29 16:37:14

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

How to show all packages from AUR which can be updated?

Hi,
I can use

pacman -Qm

to print a list of all packages I installed from AUR with their version numbers on the screen. But is there a way (maybe with yaourt?) to show which of these packages have newer versions in AUR?

I want just see them and not installing those packages. I want to decide that on my own...

Last edited by Rorschach (2009-03-29 16:38:01)

Offline

#2 2009-03-29 16:56:50

mike_93
Member
Registered: 2009-01-31
Posts: 60

Re: How to show all packages from AUR which can be updated?

yaourt -Syu --aur

that should do the trick, and update them if you want it to.

Last edited by mike_93 (2009-03-29 16:57:38)


Double booting Arch Linux and Linux Mint
Reader of XKCD

Offline

#3 2009-03-29 17:18:58

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: How to show all packages from AUR which can be updated?

Not exaclty what I was looking for because this tries to install the packages. I just want to querry aur for new packages.

Offline

#4 2009-03-29 17:21:48

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: How to show all packages from AUR which can be updated?

don't know if yaourt has this option but you can try yaourt -Qu --aur


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-03-29 17:34:40

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: How to show all packages from AUR which can be updated?

Rorschach wrote:

Not exaclty what I was looking for because this tries to install the packages. I just want to querry aur for new packages.

Should be no problem. Just abort when yaourt asks to continue.


To know or not to know ...
... the questions remain forever.

Offline

#6 2009-03-29 18:05:06

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: How to show all packages from AUR which can be updated?

@wonder: no that doesn't work sad

@bernacher: I want to do this automated and simply piping a no to STDIN won't work because yaourt asks sometimes also other questions before. I also don't need yaourt to refresh core, extra and community which it does with yaourt -Syu --aur.

Offline

#7 2009-03-29 18:11:25

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: How to show all packages from AUR which can be updated?

My AUR packages are stored under /var/cache/pacman/src. I'm no bash whizz but this works for me...

#!/bin/bash
AURS="/tmp/aurlist"
CURPKG="/tmp/aurcurpkg"
AURSRC="/var/cache/pacman/src"

find $AURSRC -name "PKGBUILD" > $AURS
for AUR in `cut -d "/" -f 6  $AURS` ; do
    PKGURL="http://aur.archlinux.org/packages/"$AUR"/"$AUR"/PKGBUILD"
    wget $PKGURL --quiet -O $CURPKG
    if ( diff -q $AURSRC/$AUR/PKGBUILD $CURPKG | grep -q differ ) ; then
        echo "$AUR need updating" ;
    fi
done
rm -f $AURS $CURPKG

Offline

#8 2009-03-29 19:38:35

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: How to show all packages from AUR which can be updated?

If you're up to using arson, then 'arson -U' does what you want.

Offline

#9 2009-03-29 19:40:11

mike_93
Member
Registered: 2009-01-31
Posts: 60

Re: How to show all packages from AUR which can be updated?

vacant wrote:

My AUR packages are stored under /var/cache/pacman/src. I'm no bash whizz but this works for me...

#!/bin/bash
AURS="/tmp/aurlist"
CURPKG="/tmp/aurcurpkg"
AURSRC="/var/cache/pacman/src"

find $AURSRC -name "PKGBUILD" > $AURS
for AUR in `cut -d "/" -f 6  $AURS` ; do
    PKGURL="http://aur.archlinux.org/packages/"$AUR"/"$AUR"/PKGBUILD"
    wget $PKGURL --quiet -O $CURPKG
    if ( diff -q $AURSRC/$AUR/PKGBUILD $CURPKG | grep -q differ ) ; then
        echo "$AUR need updating" ;
    fi
done
rm -f $AURS $CURPKG

that's pretty good for being no bash whiz smile


Double booting Arch Linux and Linux Mint
Reader of XKCD

Offline

Board footer

Powered by FluxBB