You are not logged in.

#1 2010-05-24 22:38:52

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Pacman display certain packages

hello! I know about the pacman -Q command, which brings up all my installed packages. But I was wondering if there was a command which will only show the packages I installed and make the dependencies invisible or colored (some kind of differentiator). Thank you big_smile

Offline

#2 2010-05-24 22:40:39

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: Pacman display certain packages

pacman -Q | cut -d " " -f 1

Offline

#3 2010-05-24 23:00:21

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Pacman display certain packages

man pacman wrote:

-e, --explicit
           Restrict or filter output to packages explicitly installed.

Offline

#4 2010-05-24 23:04:03

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

Re: Pacman display certain packages

Runiq wrote:
pacman -Q | cut -d " " -f 1

Not what he was looking for but "pacman -Qq" does the same thing...

Online

#5 2010-05-24 23:12:43

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: Pacman display certain packages

Allan wrote:
Runiq wrote:
pacman -Q | cut -d " " -f 1

Not what he was looking for but "pacman -Qq" does the same thing...

Huh, thanks. I should read manpages more thoroughly…

Offline

#6 2010-05-25 06:07:31

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Pacman display certain packages

What about a "pacman -Qet"?

That should fit your needs as it displays all packages that were installed explicit.

Regards

Last edited by orschiro (2010-05-25 06:07:54)

Offline

#7 2010-05-25 06:42:53

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Re: Pacman display certain packages

Thanks guys. It seems Qet worked well. Out of interest what does the "t" do? the "e" was explicit as stated above, and "Q" was query.

Offline

#8 2010-05-25 06:57:10

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Pacman display certain packages

man pacman

Offline

#9 2010-05-25 09:38:54

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Re: Pacman display certain packages

roll that made things more confusing for me...

Restrict or filter output to packages not required by any currently installed package.

Since using -Qet filtered out a lot of packages when compared to when I used -Qe, does that mean I have A LOT of useless packages?

Last edited by Japanlinux (2010-05-25 09:39:11)

Offline

#10 2010-05-25 10:08:47

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Pacman display certain packages

What is it with you guys, afraid of reading?

man pacman wrote:

-e, --explicit
           Restrict or filter output to packages explicitly installed. This option can be combined with -t to list top-level packages- those packages that were
           explicitly installed but are not required by any other package.

Before you ask, yes there is a magic combination to display orphans - packages installed as dependencies but no longer needed by any program. And you can search inside manpages.

Last edited by hokasch (2010-05-25 10:19:34)

Offline

#11 2010-05-25 20:53:14

Ogion
Member
From: Germany
Registered: 2007-12-11
Posts: 367

Re: Pacman display certain packages

Just look at those packages and determine if you don't need them..

Ogion


(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant

Offline

Board footer

Powered by FluxBB