make dependsmakes the dependencies. Which is far from showing the dependencies.
show-depends. But you're right in the respect that it doesn't (necessarily) show where a file came from. But my intention was to show there are other ways more powerful than pkg(7) to learn about ports -- whether already installed, or one you might want to install.
make show-dependsprovides a great deal of information about something not installed. That
pkgjust can't give. You could -- if you were crazy enough;
cd /usr/portsand perform a search via find(1) piping the output to grep(1), then piping that outut to
make show-dependsfinally redirecting that output to a file. Thereby giving you all (more than) the information you could ever hope to want.
Because show-depends is not a valid target, see also ports(7).
Reaction score: 15
Reaction score: 375
Just for the record, that tool moved to a different web server:
Correct. For sake of completeness, in case of using the pkg package management tool, the command is
pkg which file-or-directory-to-search-for,like in the below example:
# locate firefox | grep bin /usr/local/bin/firefox /usr/local/lib/firefox/firefox-bin # pkg which /usr/local/bin/firefox /usr/local/bin/firefox was installed by package firefox-66.0.3,1 #
Reaction score: 65