You are not logged in.

#1 2022-05-31 09:49:15

watafakamalaka
Member
Registered: 2021-07-25
Posts: 4

[SOLVED] How to get pacman minimal package set

Hello,

What I mean by that is:
I want to get a set containing the names of the packages that are needed to be installed in order to get the currently installed packages on a new system, and not just any set, but the one with the minimum length.

So you know how some package names are bundles that install a bunch of things. I don't want the name of the things, but the bundle.

Thanks

Last edited by watafakamalaka (2022-05-31 13:03:11)

Offline

#2 2022-05-31 10:04:50

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,196

Re: [SOLVED] How to get pacman minimal package set

Moist of us would follow https://wiki.archlinux.org/title/Pacman … l_packages to ensure we'd get all packages.
It can be a long list though.

There are 2 things on archlinux that could be seen as 'bundles' : groups and meta packages .

$ pacman -Qg

will list all packages on your system that are member of  a group and the group name, I don't know of a way to list meta packages.

You may find https://wiki.archlinux.org/title/Meta_p … kage_group helpfule/interesting.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-05-31 10:05:15

dogknowsnx
Guest

Re: [SOLVED] How to get pacman minimal package set

pacman -Qg

will print a list of all installed packages belonging to a specific group

pacman -Qqe

will print a list of all explicitly installed packages
The "minimum" amount of packages of a certain group equals the amount you chose on installation...

#4 2022-05-31 10:07:12

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] How to get pacman minimal package set

For everything I'm going to tell you now, there is a switch explained in 'man pacman'.

There are two mechanisms: Dependencies and groups. Everything that is not installed as a dependency of another package is called "explicit". Then there is a concept called a meta package. Those packages are usually called somepkg-meta and packages that'll usually be installed explicitly will be a dependency of those -meta packages. Be careful with groups, a package can belong to a group, whether or not you've installed the entire group.

Offline

#5 2022-05-31 11:34:31

watafakamalaka
Member
Registered: 2021-07-25
Posts: 4

Re: [SOLVED] How to get pacman minimal package set

dogknowsnx wrote:
pacman -Qg

will print a list of all installed packages belonging to a specific group

pacman -Qqe

will print a list of all explicitly installed packages
The "minimum" amount of packages of a certain group equals the amount you chose on installation...


Thanks,

pacman -Qqe

worked well enough.

Offline

#6 2022-05-31 12:15:13

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] How to get pacman minimal package set

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB