Page MenuHomeFreeBSD

D55458.id172751.diff
No OneTemporary

D55458.id172751.diff

diff --git a/share/man/man7/freebsd-base.7 b/share/man/man7/freebsd-base.7
--- a/share/man/man7/freebsd-base.7
+++ b/share/man/man7/freebsd-base.7
@@ -217,6 +217,27 @@
pkg -r /ppcdev -oABI=FreeBSD:16:powerpc64le \e
install FreeBSD-set-devel
.Ed
+.Ss Example 6: Remove base system package management
+Unregister and strip package metadata from the running system.
+This is useful if you want to manage the system via system source
+.Xr build 7 .
+First, unregister the system from the package manager:
+.Bd -literal -offset indent
+pkg unregister -f FreeBSD-\e*
+.Ed
+.Pp
+Then, disable the base system package repository.
+If you created a base system repository file in
+.Pa /usr/local/etc/pkg/repos/ ,
+remove it,
+or add a string disabling the repo into a file there:
+.Bd -literal -offset indent
+cd /usr/local/etc/pkg/repos
+echo "FreeBSD-base: { enabled: no }" >> FreeBSD-base.conf
+.Ed
+.Pp
+Note that this will prevent updating the base system via
+.Xr pkg 8 .
.Sh SEE ALSO
.Xr build 7 ,
.Xr pkg 8 ,

File Metadata

Mime Type
text/plain
Expires
Thu, May 28, 11:49 PM (12 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33594789
Default Alt Text
D55458.id172751.diff (1022 B)

Event Timeline