You are not logged in.

#1 2014-10-17 21:00:02

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

How to list AUR packages in terminal with yaourt or other helper?

I can list packages I have installed from AUR, for example to find all the developer components of Xfce that I have installed, I can run the following command:

    pacman -Qim | grep -E "Name           : xf".+devel

Which outputs:

    Name           : xfce4-appfinder-devel
    Name           : xfce4-dev-tools-devel
    Name           : xfce4-panel-devel
    Name           : xfce4-session-devel
    Name           : xfce4-settings-devel
    Name           : xfdesktop-devel
    Name           : xfwm4-devel

But, how do I find out if there are other packages that match the same regex pattern available in the AUR, maybe using yaourt? When I try:

    yaourt -Si | grep -E "Name           : xf".+devel

I get no output. When I don't include .+devel, I find out that none of the AUR packages are included. If I try to force it to search the AUR by including -a, it says that's not a valid option.

So, how do I search the AUR from the terminal?

Offline

#2 2014-10-17 21:02:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to list AUR packages in terminal with yaourt or other helper?

Not a Sysdamin issue, moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-10-17 21:09:40

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 469

Re: How to list AUR packages in terminal with yaourt or other helper?

why not to search in the aur tab -> packages ?

ezik

Offline

#4 2014-10-17 21:09:59

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: How to list AUR packages in terminal with yaourt or other helper?

I don't know the syntax of yaourt, but with cower you can do something like this:

cower -s devel xf.*-devel

@shulamy: The AUR search is somewhat limited and doesn't support more complex searches like multiple substrings.

Last edited by progandy (2014-10-17 21:13:48)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Online

#5 2014-10-17 21:46:52

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: How to list AUR packages in terminal with yaourt or other helper?

shulamy wrote:

why not to search in the aur tab -> packages ?

ezik

I can't figure out how to do that search in the aur tab. Please explain how I can narrow down the packages to only those that have both 'xf' and 'devel' in the name?

Offline

#6 2014-10-17 21:48:27

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: How to list AUR packages in terminal with yaourt or other helper?

progandy wrote:

I don't know the syntax of yaourt, but with cower you can do something like this:

cower -s devel xf.*-devel

@shulamy: The AUR search is somewhat limited and doesn't support more complex searches like multiple substrings.

Thanks. yaourt didn't work that way and returns nothing at all, but the cower command you gave works perfectly. It almost seems that yaourt has lost the ability to query the AUR unless actually installing something. If anyone knows how to do it with yaourt, I'd still like to know.

Offline

#7 2014-10-18 02:38:01

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: How to list AUR packages in terminal with yaourt or other helper?

cower transparently supports regex -- but not thanks to the AUR. In reality, the query "xf.*-devel" is actually asking the AUR to search for "xf". The returned results are filtered against the regex "xf.*-devel" and out pops magic.

Yaourt doesn't do this.

Offline

#8 2014-10-18 13:05:37

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: How to list AUR packages in terminal with yaourt or other helper?

falconindy wrote:

cower transparently supports regex -- but not thanks to the AUR. In reality, the query "xf.*-devel" is actually asking the AUR to search for "xf". The returned results are filtered against the regex "xf.*-devel" and out pops magic.

Yaourt doesn't do this.


I saw that, but Yaourt should be able to simply query the AUR without it trying to install stuff, but how? Does anyone know? I knew yaourt didn't support regex, that's why I was piping the output to grep. It worked for pacman, and works for yaourt when it uses pacman, but I can't figure out how to get it to return the contents of the AUR so I can pipe those contents through grep.

Offline

#9 2014-10-18 13:26:44

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

Re: How to list AUR packages in terminal with yaourt or other helper?

I have no idea how yaourt (fails to) work(s), but FWIW the pacman command you used could be simplified - both the command and the processing needed would be reduced:

pacman -Qim | grep -E "Name           : xf".+devel

pacman -Qqm | grep -E "xf".+devel

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2014-10-18 17:47:35

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 469

Re: How to list AUR packages in terminal with yaourt or other helper?

you are right, its writen "keywords" but not what is the separator.

ezik

Offline

#11 2014-10-18 18:48:15

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 469

Re: How to list AUR packages in terminal with yaourt or other helper?

you can choose xfce in "category" and devel in "keywords".

ezik

Offline

Board footer

Powered by FluxBB