You are not logged in.

#1 2007-07-02 23:28:44

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

[solved]How to get a total system package count.

Ok, I tried the wiki, the man pages and searched the forums.
Somehow I remember seeing a post entitled "How many packages on your machine?" and there was a pacman query option to give you a total number of them installed. Something like:

pacman -Ql

or

pacman -Q

perhaps followed with a pipe and then a bash count command?
The above gives me a list, but not a total. Does anyone know a switch or option to add to the query to tally these up?

Last edited by Misfit138 (2007-07-03 00:53:21)

Offline

#2 2007-07-02 23:39:42

Abadaar
Member
From: Stockholm, Sweden
Registered: 2006-11-10
Posts: 28

Re: [solved]How to get a total system package count.

pacman -Q | wc -l

That should do it.

Offline

#3 2007-07-02 23:46:48

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [solved]How to get a total system package count.

Thank you so very much! I could not glean this from the man pages.

Offline

#4 2007-07-03 00:24:18

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [solved]How to get a total system package count.

What number comes up from......pacman -Ql | wc -l  .......?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#5 2007-07-03 00:35:42

Abadaar
Member
From: Stockholm, Sweden
Registered: 2006-11-10
Posts: 28

Re: [solved]How to get a total system package count.

lilsirecho wrote:

What number comes up from......pacman -Ql | wc -l  .......?

126706

Offline

#6 2007-07-03 00:38:11

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [solved]How to get a total system package count.

lilsirecho wrote:

What number comes up from......pacman -Ql | wc -l  .......?

What kind of question is that ? smile
Do you want to know the number of installed files for each user or something?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB