You are not logged in.

#1 2023-02-11 17:14:14

jr_west
Member
Registered: 2022-09-13
Posts: 11

Dependency tree of an package that's not installed

It seems like pactree only works on installed packages? Or at least I can't get it to work on a package that isn't installed.

But I want to see the dependency tree of a package that isn't installed yet. I'm trying to figure out why a package is making me install ruby... it seems like an odd dependency.

Thanks,

-Jon

Offline

#2 2023-02-11 17:16:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Dependency tree of an package that's not installed

pactree has an option to use the sync databases instead of the locally installed database.

Offline

#3 2023-02-11 17:22:37

jr_west
Member
Registered: 2022-09-13
Posts: 11

Re: Dependency tree of an package that's not installed

It doesn't seem to work for AUR packages?

Offline

#4 2023-02-11 17:54:41

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,564
Website

Re: Dependency tree of an package that's not installed

No, AUR packages aren't in the sync database. You may be able to achieve something similar with an AUR helper. For example auracle has a buildorder flag which can be used to see which packages pull in other packages:

$ auracle buildorder auracle-git 
SATISFIEDREPOS pacman
SATISFIEDREPOS libcurl.so
SATISFIEDREPOS libsystemd
REPOS meson
SATISFIEDREPOS git
SATISFIEDREPOS perl
SATISFIEDREPOS systemd
SATISFIEDREPOS python
REPOS fakechroot
REPOS gtest
TARGETAUR auracle-git auracle-git

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB