You are not logged in.

#1 2012-11-26 18:15:34

Llama
Member
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,301

Number of packages in a repository

Hi,

Is there a way to query the number of packages in a given repository by means of pacman. Or yaourt, perhaps.

Offline

#2 2012-11-26 18:39:48

mcmillan
Member
Registered: 2006-04-06
Posts: 698

Re: Number of packages in a repository

Don't know of a direct way, though you could pipe the output of pacman -Sl though wc

Offline

#3 2012-11-26 18:42:13

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,352
Website

Re: Number of packages in a repository

expac has a repo option; you could play with that...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#4 2012-11-26 19:41:21

natestar13
Member
From: Tampa, FL
Registered: 2012-01-16
Posts: 54

Re: Number of packages in a repository

Using mcmillan's idea:

pacman -Sl | grep *repo* | wc -l 

For example, to get a count of how many packages are in multilib:

 pacman -Sl | grep multilib | wc -l
149

This can be verified using the package search on the Arch website.


Machine:  Gateway NV55C Dual core Intel Pentium CPU P6100

Offline

#5 2012-11-27 05:00:13

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,428
Website

Re: Number of packages in a repository

pacman -Sl core | wc -l

Offline

Board footer

Powered by FluxBB