pkg_info -rR <portglob>
for an installed port, or run make build-depends-list && make run-depends-list
in a port directory under /usr/ports. make missing
in a port directory under /usr/ports.DutchDaemon said:And if you mean "which port depends on which ports", either run [cmd=]pkg_info -rR <portglob>[/cmd] for an installed port, or run [cmd=]make build-depends-list && make run-depends-list[/cmd] in a port directory under /usr/ports.
$ make all-depends-list
will list all the dependencies, including grandchildren and so on going down the tree$ portmaster --show-work x11-wm/fvwm2-devel
#pacman -Ql package
root@myhost ~#pacman -Ql mlocate
mlocate /etc/
mlocate /etc/cron.daily/
mlocate /etc/cron.daily/updatedb
mlocate /etc/updatedb.conf
mlocate /usr/
mlocate /usr/bin/
mlocate /usr/bin/locate
mlocate /usr/bin/slocate
mlocate /usr/bin/updatedb
mlocate /usr/share/
mlocate /usr/share/locale/
mlocate /usr/share/locale/ast/
.....
make build-depends-list && make run-depends-list
?Is there a way to see the reverse ofmake build-depends-list && make run-depends-list
?
For example, I want to remove linux_base-f10-10_9. I want to know if any of the other ports depend on it.
For example, what will break once I delete linux_base-f10-10_9?
make all-depends-list
or make run-depends-list
on every port except the one that is being examined.I know it's been a while, but I've come across a similar question. Actually a simple script can help to deal with that:Is there a way to see the reverse ofmake build-depends-list && make run-depends-list
?
For example, I want to remove linux_base-f10-10_9. I want to know if any of the other ports depend on it.
For example, what will break once I delete linux_base-f10-10_9?
#!/usr/local/bin/bash
pkg info -ao | awk '{ print $2 }' |
while read line
do
cd /usr/ports/$line
if [ -n "$(make run-depends-list | grep linux_base-f10)" ]; then
echo "$line depends on linux_base-f10"
fi
done
pkg info -r linux_base-f10
-r, --required-by
Display the list of packages which require pkg-name.
pkg -r ...
output.Probably because another rebuilt port needs them to build.Yea, so it says. But I was a bit mistrusting it after it failed to show me why certain packages were persistently rebuilt (by portmaster) after removal, while "no installed package needed them" according to thepkg -r ...
output.
pkg
will only show runtime dependencies, which is enough for binary packages. pkg -r ...
, it originally contained all-depends-list instead of run-depends-list.Right, I don't see how it could be a build-dependency. But my script was written with webkit2-gtk3 and other longbuilders in mind.In this case it probably won't matter, as far as I know emulators/linux_base-f10 is never a build or library dependency. It's only a run dependency. But I haven't checked all 25.000+ ports
pkg check --dependencies
Well, it says: 100%. Looks good, but not very informative, eh? You must have meantpkg check --dependencies
pkg info --dependencies <pkgname>