You are not logged in.

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

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

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: 737

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
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Number of packages in a repository

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


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

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

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

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:  Lenovo ThinkCenter M92 (M3209) - Inte i7-3770 CPU

Offline

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

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: Number of packages in a repository

pacman -Sl core | wc -l

Offline

Board footer

Powered by FluxBB