Solved question about pkg bootstrap -f in freebsd15.0 ?

Dear all :
i have meet this command "pkg bootstrap -f" in freebsd ....
and read the books about pkg

pkg
provides an interface for manipulating packages: registering,
adding, removing and upgrading packages. pkg-static is a statically
linked variant of pkg typically only used for the initial installation
of pkg. There are some differences in functionality. See pkg.conf(5)
for details.

bootstrap
This is for compatibility with the pkg(7) bootstrapper. If pkg
is already installed, nothing is done.
If invoked with the -f flag an attempt will be made to rein-
stall pkg from remote repository.

if we can't install pkg tools , why we can use "pkg bootstrap -f " command to install pkg ?
what is it to do with command "pkg bootstrap -f " ? or " pkg bootstrap -f " is not a command ,just a script ? please show me all steps about "pkg bootstrap -f " job to install pkg tools ... thanks.
 
why we need two versions pkg tools ?
Just think about it for a second, how is ports-mgmt/pkg installed on a new system? One that doesn't have pkg(8). Where do you think this message comes from?
Code:
root@fbsd-test:~ # pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]:
 
Back
Top