register
command to register packages into the SQLitedatabase from the ports. The register command can execute the install script,show pkg-message, ...pkg add
can install a package archive from the local disk, or from aremote FTP/HTTP server.pkg add
will check if the user attempts to install a package builtfor another arch or release.pkg delete
will remove a package, and (depending on the command linearguments) any other packages that depend on what you're trying todelete.pkg -N
as a test to see ifpkg(8) is installed without triggering the installation, andconversely, pkg bootstrap[-f]
to install pkg(8) (or force it to bereinstalled) without performing any other actions.pkg help <command>
command, which will take the man page of the specified command.pkg help
pkg info
command.pkg info
will query the local package database and displayinformation about the package you are interested in./etc/pkg/FreeBSD.conf
which is setup to install packagesfrom the official package repositories./usr/local/etc/pkg/repos
-- it doesn't matter what thefilename is other than it must match '*.conf' and you should add a'priority' setting indicating the preference order. This is just aninteger, where higher values indicate the more preferred repositories.Priority defaults to 0 unless explicitly stated. This is the valuefor the default /etc/pkg/FreeBSD.conf
/usr/local/etc/pkg/repos/FreeBSD.conf
with the contents:pkg -vv
.pkg.conf
and theper-repository repo.conf
files. See pkg-repository(5) for moredetails about package repositories and how to work with them.pkg install
command:myrepo
is one of the tags shown in the pkg -vv
output.pkg(8) will automatically create an annotation showing whichrepository a package came from, similarly to the effect of running:CONSERVATIVE_UPGRADE
in pkg.conf(5).pkg search
command.pkg search
will returnresults from searching each of them. Use the -r reponame
option toconfine your search to a specific repository.pkg install
command.pkg backup
command.pkg create
command.mysql-client
ports available at http://www.freebsd.org/. Using these ports gives you the following benefits:/usr/local/etc/rc.d
. pkg_info -L
to see which files are installed. pkg_delete
to remove MySQL if you no longer want it on your machine./usr/local/libexec/mysqld
, with the startup script for the MySQL server placed in /usr/local/etc/rc.d/mysql-server
. TZ
variable should help. See Section 4.9, “MySQL Environment Variables”.