# pkg info package_name
Search for packages name:
# pkg search package_name
# pkg search -o php
Detailed package information:# pkg search -f package_name
For a specific version of PHP:
# pkg search php5 | less
# pkg search php7
# pkg search nginx
Search the descriptions:
# pkg search -D pattern
# pkg search -D java
# pkg help search
Package install with Pkg:
# pkg install package_name
# pkg install package1 package2 ...
# pkg install nginx
If you are using the default shell, tcsh, or csh, you should rebuild the list of binaries in your PATH with this command:
# rehash
Run Services:
Runs as a service:
# ee /etc/rc.conf
# sysrc nginx_enable=yes
# service nginx start
Upgrade Installed Packages with Pkg:
# pkg upgrade
Delete Packages with Pkg:
# pkg delete package_name
# pkg delete package1 package2 ...
# pkg delete nginx
Remove Unused Dependencies
# pkg autoremove
Furthue reading: Install with ports.
OS: freeBSD 12
No comments:
Post a Comment