You are not logged in.

#1 2026-06-18 05:24:47

bivan
Member
Registered: 2026-02-03
Posts: 42

[SOLVED] How to know, get rid of the too many package(s) in a list?

E.g. supertux https://archlinux.org/packages/extra/x86_64/supertux/ not installed depends among other of physfs not installed, I can stupidly enter

sudo pacman -Syu supertux physfs

instead of just

sudo pacman -Syu supertux

so the title? Any command?

Last edited by bivan (2026-06-19 19:50:31)

Offline

#2 2026-06-18 06:51:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,224

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

Errr… wut?
You just install the package you actually want and have pacman resolve the dependencies.

sudo pacman -Syu supertux physfs

marks supertux and physfs as explicitly installed because you explicitly want both and physfs NOT to be removed w/ supertux - pacman cannot magically know that this isn't your actual intention.

LC_ALL=C pacman -Si supertux | grep 'Depends On'

will get you a list of hard dependencies for supertux, but whatever you're trying to achieve here, fundamentally rethink what you're doing first.

Offline

#3 2026-06-18 07:05:49

bivan
Member
Registered: 2026-02-03
Posts: 42

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

Well if I don't know the "master" (how to say?) package(s)? supertux or physfs?

Precisely my issue is to install ALARM Plasma Mobile on a Pinephone Pro (yes there's https://archlinuxarm.org/forum/ but register is broken & it's a general question, on PC also), a packages list https://git.sr.ht/~undeadleech/catacomb … .js#L84-91 : I suspect there are too many packages (like physfs), so my question? Justly I want explicitly install at minimum.

Last edited by bivan (2026-06-18 07:25:56)

Offline

#4 2026-06-18 07:15:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,224

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

https://git.sr.ht/~undeadleech/catacomb … .js#L84-91 doesn't include physfs and at a glance nothing there looks like it's a hard dependency for other packages in the list (and even if, that would not mean that a dependency cannot be desirable apart its dependents)

Offline

#5 2026-06-18 07:54:35

bivan
Member
Registered: 2026-02-03
Posts: 42

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

seth wrote:

doesn't include physfs

I edited, "like" instead of "as".

Well if the egyptian god seth doesn't know, who knows? So feature request: a software to know the too many dependency(ies) in a packages list, maybe a Bash script with pactree, where to post an Arch Linux software feature request?

Offline

#6 2026-06-18 10:31:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,246

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

If you don't explicitly list the packages as part of -Syu any relevant dependencies will be installed as dependencies and be considered on a pacman -Rns call to be safe for removal if nothing else depends on it.

So in your supertuxkart example if you pick just supertuxkart physfs would get uninstalled if you do a pacman -Rns of supertuxkart because physfs wasn't explicitly installed. If this doesn't answer your question then you need to clarify what you actually want, it's somewhat hard to follow your intention.

Offline

#7 2026-06-18 11:29:59

bivan
Member
Registered: 2026-02-03
Posts: 42

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

V1del wrote:

supertuxkart

no, supertux.

In summary:

E.g. I can do

sudo pacman -Syu supertux zaz physfs chromium-bsu openal

but I want the least packages to explicitly install, so errors above! physfs & openal are dependencies of supertux , so the right answer is

sudo pacman -Syu supertux zaz chromium-bsu

so is there a software (a command) to reduce or know the packages list for the least packages to explicitly install (without the dependency(ies)), as above?
I think of a Bash script using pactree, any volunteer(s) ?

Offline

#8 2026-06-18 11:33:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,246

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

So you basically want something you can give a list of packages to and only top level ones to remain/ get output? While I don't quite see the usecase as you'd naturally just install supertux and zaz and chromium-bsu because those are the actual tools you're interested in, one could proably do something like that.

Offline

#9 2026-06-18 11:34:14

Whoracle
Member
Registered: 2010-11-02
Posts: 222

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

pacman -Qe lists all explicitly installed packages. Is that what you want?

Online

#10 2026-06-18 11:48:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,224

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

Afaiu the OP has some list of packages that might include redundancies. An actual example would probably be better…

LC_ALL=C pacman -Si supertux firefox | sed '/Depends On/!d; s/^.*: //g; s/ \+/\n/g' | sort -u

will get you a collated list of explicit dependencies for supertux and firefox
You can then use https://man.archlinux.org/man/comm.1.en to filter that against your list of packages.

Getting optional dependencies in there is going to be a bit more involved because of the output format (they're commented and in multiple lines)

Offline

#11 2026-06-18 22:03:38

killertofus
Member
Registered: 2025-02-10
Posts: 190

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

alarm is not Arch, (yet) and is not supported here for now.

https://bbs.archlinux.org/misc.php?action=rules


I Have Linux Perl Can i Download Gnome???

Offline

#12 2026-06-19 19:13:43

bivan
Member
Registered: 2026-02-03
Posts: 42

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

Seems your command works seth thanks, finally I composed myself a packages list for my Pinephone Pro.

lol what about the Other Architectures sub forum? AArch64 is ARM 64-bit.

Offline

#13 2026-06-19 19:46:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,224

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

You mean the one w/ the bytext

Discussion about AArch64, RISC-V and other architectures that are currently unsupported

?

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#14 2026-06-19 19:49:58

bivan
Member
Registered: 2026-02-03
Posts: 42

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

Yes.

Offline

#15 2026-06-20 10:00:19

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

Re: [SOLVED] How to know, get rid of the too many package(s) in a list?

The Bring ARM into the fold? is about the efforts to get archlinux running on ARMv8.2-A (and later) architecture .

When that initiative gets far enough archlinux will likely officially support that new architecture using the same PKGBUILDs , repositories , tooling etc that's now used exclusively for x86_64 .


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

Board footer

Powered by FluxBB