pkg install command
m.seaman at infracaninophile.co.uk
Tue May 6 16:22:52 UTC 2014
On 05/06/14 16:50, Fbsd8 wrote:
> How does the "pkg install" command work?
You type 'pkg install pkgname' and it installs the named package on your
system, or updates it, if it's already installed. Read pkg-install(8)
for the details.
> Does it issue a fetch ftp command to download the package?
It can use any of the protocols supported by libfetch, plus SSH plus
reading directly from the filesystem. Which one it uses depends on the
repo.conf --- for the default FreeBSD pkg repository, the URL is:
meaning it looks up 'pkg.freebsd.org' via SRV records and then fetches
packages etc. from one of the repository mirrors using HTTP.
Type 'pkg -vv' to see a summary of your active configuration.
> Does my firewall need any rules to let "pkg install" out and in?
If you're using HTTP to access the repo, then pkg(8) needs exactly the
same firewall access as any other HTTP client. It should be proxy
friendly, and you can use the environment settings described in fetch(3).
AFAIK, there aren't any publicly accessible package repositories
available via anything other than HTTP, although it would be perfectly
possible to use FTP instead. In the unlikely event that you need to use
a FTP based repository, then your firewall settings should allow
passive-mode FTP clients.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1029 bytes
Desc: OpenPGP digital signature
More information about the freebsd-questions