![]() |
|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
`pkg_info -m` is currently showing dependencies that were not manually installed. This seems to happen every so often, and the only way I can think to fix it is to remove the main package that pulled in the dependencies, then `pkg_delete -a`, then reinstall the main package. Although quite often, a dependency listed by `pkg_info -m` belongs to a number of main packages, each discovered in turn as I go through this process.
Is there a simpler way of accomplishing this? Manually editing the pkg db somehow? |
|
|||
![]()
Perfect, thanks! As always, a closer reading of the man page would have fixed my issue.
![]() Quote:
It seems to correlate with major bumps to package versions. Good catch, thanks. |
|
|||
![]()
Yeah, I must be doing something to cause it, I just can't imagine what.
pkg_check cleaned up a few permissions in /var/db/pkg. Will keep an eye on things and report back if I find any clues. |
|
|||
![]()
Nah, I always use `pkg_add -ui`.
|
|
|||
![]()
I wrote a little shell script that tells me why a particular package was installed (manual vs. automatic) and which other packages depend on it, if any. Here it is in case it is of use to anyone:
Code:
#!/bin/sh cd /var/db/pkg grep -q '@option manual-installation' ${1}-*/+CONTENTS 2>/dev/null result=$? case $result in 0) echo "Manually installed." ;; 1) echo "Automatically installed." ;; 2) echo "Not installed."; exit ;; esac if grep -q -r "@depend .*:${1}-" *; then echo "The following packages depend on it:" grep -r "@depend .*:${1}-" * | awk -F'/' '{print $1}' | uniq else echo "No packages depend on it." fi Code:
bruno@thinkpad:~$ why ffmpeg Manually installed. The following packages depend on it: mplayer-20190330p0 mpv-0.29.1 Last edited by brudan; 18th June 2019 at 06:28 PM. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"pkg_info -W" in OpenBSD? | yezster | OpenBSD Packages and Ports | 3 | 13th February 2018 04:23 AM |
/etc/daily gives incorrect warning | acampbell | OpenBSD General | 8 | 12th May 2017 04:12 AM |
patch for CVE-2012-2110 - incorrect? | jsmith6134 | OpenBSD Security | 2 | 23rd April 2012 12:15 PM |
Incorrect df results (not -h, not a FAQ) | nathang | FreeBSD General | 5 | 8th June 2008 06:44 AM |