You are not logged in.

#1 2012-04-29 10:36:06

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 325
Website

[solved] searching in "Name" in www.archlinux.org/packages

When searching for the kernel (the package is named "linux") I got like 300 irrelevant packages. I guess it is because it searches in the "Description" column. Can I search in the "Name" column?

Last edited by beroal (2012-05-02 12:49:12)


we are not condemned to write ugly code

Offline

#2 2012-04-29 11:07:39

Into the Pit
Member
Registered: 2010-09-04
Posts: 37

Re: [solved] searching in "Name" in www.archlinux.org/packages

Try Kernel as name. wink

Offline

#3 2012-04-29 20:47:47

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 325
Website

Re: [solved] searching in "Name" in www.archlinux.org/packages

Into the Pit wrote:

Try Kernel as name. wink

Thanks, 100 irrelevant packages. That's better. "linux kernel" gives 40. smile


we are not condemned to write ugly code

Offline

#4 2012-04-29 22:19:24

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

Re: [solved] searching in "Name" in www.archlinux.org/packages

I use a shell function

apkg () { $BROWSER "http://www.archlinux.org/packages/?name=$*"; }

Compare the default http://www.archlinux.org/packages/?q=linux with http://www.archlinux.org/packages/?name=linux

Offline

#5 2012-04-29 23:27:24

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [solved] searching in "Name" in www.archlinux.org/packages

Thanks for the tip karol!

Offline

#6 2012-04-30 07:56:33

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: [solved] searching in "Name" in www.archlinux.org/packages

 $ pacman -Sl {core,  extra, community} | grep linux 

And of course you don't have to search all three repositories if you know which one you want to look in.

Offline

#7 2012-04-30 11:32:16

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 325
Website

Re: [solved] searching in "Name" in www.archlinux.org/packages

Thanks, that helps. (Though it searches by equality, not by a substring.)

jakobcreutzfeldt wrote:
 $ pacman -Sl {core,  extra, community} | grep linux 

And of course you don't have to search all three repositories if you know which one you want to look in.

Wow, I did not realize that this combination of options makes sense. "-l" shows files in some package, and "-S" synchronizes packages.


we are not condemned to write ugly code

Offline

#8 2012-04-30 15:13:25

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

Re: [solved] searching in "Name" in www.archlinux.org/packages

beroal wrote:

Wow, I did not realize that this combination of options makes sense.

I don't know why would you want to search the way jakobcreutzfeldt suggested if you don't need limiting to certain repos.
What's wrong with

pacman -Ssq | grep linux

?

beroal wrote:

"-l" shows files in some package,

It does with '-Q'. 'pacman -Sl' lists packages:

$ pacman -Sh
...
  -l, --list <repo>    view a list of packages in a repo
...

Offline

Board footer

Powered by FluxBB