pkg vs pkg-static

What is the difference between using pkg and pkg-static?

I'm planning to update my home machine to FreeBSD 11 and noticed this in the docs :
Code:
23.2.3.2. Upgrading Packages After a Major Version Upgrade

A forced upgrade of all installed packages will replace the packages with fresh versions from the repository even if the version number has not increased.
This is required because of the ABI version change when upgrading between major versions of FreeBSD.

The forced upgrade can be accomplished by performing:

# pkg-static upgrade -f
https://www.freebsd.org/doc/handboo...freebsdupdate.html#freebsdupdate-portsrebuild

Why are the docs recommending to use pkg-static?
 
It look like it is part of the pkg port
Code:
❯ pkg list pkg|grep pkg-static
/usr/local/man/man8/pkg-static.8.gz
/usr/local/sbin/pkg-static
 
That was the pkg to bootstrap /usr/local/(s)bin/pkg. I.e. one a fresh install where no packages are installed.
pkg-static is probably a good idea if you upgrade "world" . [Because libraries are staticly linked it won't get broken]
 
B
That was the pkg to bootstrap /usr/local/(s)bin/pkg. I.e. one a fresh install where no packages are installed.
pkg-static is probably a good idea if you upgrade "world" . [Because libraries are staticly linked it won't get broken]
And it means that this version of pkg is independent of ports as well. Because only linked to base. It can also upgrade the system if needed in emergency
 
Back
Top