Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 May 2014 17:22:36 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg install command
Message-ID:  <53690C4C.9090808@infracaninophile.co.uk>
In-Reply-To: <536904D6.1090102@a1poweruser.com>
References:  <536904D6.1090102@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--iHB9A6spKWJEgwluGlJgGiVRH9jJioIv2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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:

pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest

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.

	Cheers,

	Matthew




--iHB9A6spKWJEgwluGlJgGiVRH9jJioIv2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJTaQxUXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTndS0P/jhAnPBdHgkMA2W7wrJDATaL
et79PayvUKtTRTFI6QynR6o9WDdNGHjedZjaqhQaS9Ivs8bCKnE+YuKwcnbZO08G
uz44g2k0FiDHBkqcUGK1lR3Ol4P8w71XUszPmB8ZSfGy6O8XYSFyDk++3dsDSDb/
zz6qY7uzbXq4nVCX2gW/AZza6AhFGV3jplX0UjYnt/fFXiBvmOQCbdf1qeU6Up+t
7UfsP2VyHaIE3tFA8qHM2vNk6A2pfgvY/zPYnl6Qo+NUmrswygBfxpzcl8RwwT70
ztmgOhrLtSG1V8E5BbRK8FH/KqggPwqnneCs55u5TbtTZMK4V2mjh8q9j23iOS8h
R04q7eYKPp441j5Sm57gCux/vlwa2DTtGMFAMUdJxUa+PepHsEOmMu2DHQFVsI59
Uw2SsIGLTJDW8ETqls+5lETNVo5Xm0BdtK9OsAcCnb3N1a6zmT5m/UD+wN3pTEaI
JDPA/3YH+jHB6yXtmwcRYk2S+ow7zXUS/BWHhnzTxaz6GLTv+nzLEfWh+1i73qWt
EQ/TXWwEREU9NfO5tXEj2JgQyDmxi37hW7VyxqHXwbzMp5NOgkPesvze8yafL7xL
u0edhKw4gCpnNrqmyFeDhuaFLS8Hr4GTdVScDhb80MzqXP8YNvirztsKYU9a51f8
OLCU+dYLV7e0DQOJd1hK
=Y7+m
-----END PGP SIGNATURE-----

--iHB9A6spKWJEgwluGlJgGiVRH9jJioIv2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53690C4C.9090808>