Page MenuHomeFreeBSD

freebsd-update: Correctly check if pkg(8) is present
ClosedPublic

Authored by zlei on May 22 2024, 1:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 1:33 AM
Unknown Object (File)
Wed, Nov 6, 2:17 PM
Unknown Object (File)
Thu, Oct 24, 2:52 AM
Unknown Object (File)
Oct 16 2024, 1:45 AM
Unknown Object (File)
Oct 15 2024, 2:44 PM
Unknown Object (File)
Oct 14 2024, 3:47 PM
Unknown Object (File)
Oct 13 2024, 7:29 AM
Unknown Object (File)
Oct 11 2024, 8:53 PM
Subscribers

Details

Summary

On system without pkg(8) installed, command -v pkg will return success
and falsely report pkg(8) is present. Fix that by checking via pkg -N
form.

This is missed from final revision of D39695.

Reported by: delphij
Fixes: bc0c6c9cf3a9 freebsd-update: Add check for kernel modules

Test Plan

Test freebsd-update upgrade on system w/o pkg(8) installed.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable