You are not logged in.

#1 2015-04-05 14:57:55

TheKing42
Member
Registered: 2014-10-08
Posts: 40

List explicitly installed packages and groups

How does one list the explicitly installed packages and groups, where if a package was installed as part of a group, it only shows the group, not the package. The reason is I have a lot of packages, but I don't want to remove a package that is part of a group unless I want to remove the whole group.

The command pacman -Qen can list installed packages, but I don't know how to make it group groups.

For example, let's say I have explicitly installed package foo, and groups bar and qeuz, where bar contains bar1 and bar2, and quez contains quez1.

We know what this will do

$ pacman -Qen
foo
bar1
bar2
quez1

but I want a command to return:

$ <magic command>
foo
bar
quez

It is a bonus if it labels which are packages and which are groups.

Last edited by TheKing42 (2015-04-05 14:58:08)


That question on the noobie form freaked me out. I was able to figure it out, but why do we have that?

Offline

#2 2015-04-05 15:07:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,611

Re: List explicitly installed packages and groups

I don't believe pacman knows when you installed something as part of a group. It knows when something is part of a group, but not how you installed it.

Offline

#3 2015-04-05 16:39:17

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

Re: List explicitly installed packages and groups

TheKing42 wrote:

The reason is I have a lot of packages, but I don't want to remove a package that is part of a group unless I want to remove the whole group.

Why?

Maybe expac may help with some of this.

Offline

Board footer

Powered by FluxBB