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)
Dec 5 2024, 7:27 PM
Unknown Object (File)
Nov 30 2024, 11:58 AM
Unknown Object (File)
Nov 25 2024, 9:34 PM
Unknown Object (File)
Nov 25 2024, 6:58 AM
Unknown Object (File)
Nov 24 2024, 11:52 PM
Unknown Object (File)
Nov 23 2024, 12:36 AM
Unknown Object (File)
Nov 21 2024, 5:00 PM
Unknown Object (File)
Nov 20 2024, 12:02 AM
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