Figures out which OpenBSD packages directly or indirectly depend on the package(s) in question.
For further information, please have a look at the manpage.
Note: Only installed packages are considered.
First of all, make sure you're running OpenBSD-current
. Otherwise, one of the following branches might be more appropriate:
Then, make sure your user (e.g. mpfr
) has sufficient doas
permissions.
$ cat /etc/doas.conf
permit nopass mpfr
Download and extract the source files into the user's home directory, here /home/mpfr
.
$ cd
$ pwd
/home/mpfr
$ doas rm -rf pkg_depts-current/
$ ftp -Vo - https://codeload.github.com/mpfr/pkg_depts/tar.gz/current | tar xzvf -
pkg_depts-current
pkg_depts-current/LICENSE
pkg_depts-current/README.md
pkg_depts-current/docs
pkg_depts-current/docs/pkg_depts.1.html
pkg_depts-current/src
pkg_depts-current/src/Makefile
pkg_depts-current/src/pkg_depts.1
pkg_depts-current/src/pkg_depts.sh
pkg_depts-current/src/pkg_info_1.pl
Install tool and manpage.
$ cd pkg_depts-current/src
$ doas make install
install -c -o root -g bin -m 555 /home/mpfr/pkg_depts-current/src/pkg_depts.sh ...
install -c -o root -g bin -m 555 /home/mpfr/pkg_depts-current/src/pkg_info_1...
install -c -o root -g bin -m 444 pkg_depts.1 ...
$ cd ~/pkg_depts-current/src
$ doas make uninstall
rm /usr/local/sbin/pkg_depts /usr/local/sbin/pkg_info_1 /usr/local/man/man1/...