Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2017 07:45:08 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: pkg convert?
Message-ID:  <0e32b32b-5a8d-6f08-b969-9d3fd638d459@FreeBSD.org>
In-Reply-To: <5C.19.03935.91517495@dnvrco-omsmta01>
References:  <5C.19.03935.91517495@dnvrco-omsmta01>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--MmX4FkWl45h8QjI6IreJI6EK0Vls3mq0T
Content-Type: multipart/mixed; boundary="2e3cd3Ql0NmQmLxRMV3EIlBtSOkahlS62";
 protected-headers="v1"
From: Matthew Seaman <matthew@FreeBSD.org>
To: freebsd-ports@freebsd.org
Message-ID: <0e32b32b-5a8d-6f08-b969-9d3fd638d459@FreeBSD.org>
Subject: Re: pkg convert?
References: <5C.19.03935.91517495@dnvrco-omsmta01>
In-Reply-To: <5C.19.03935.91517495@dnvrco-omsmta01>

--2e3cd3Ql0NmQmLxRMV3EIlBtSOkahlS62
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 19/06/2017 01:04, Thomas Mueller wrote:
> Looking through the man page for pkg, I see there is still an entry for=
 convert ("pkg help convert" or "man pkg-convert").
>=20
> DESCRIPTION
>      pkg convert is used to convert from/to pkg(8) local database to le=
gacy
>      pkg_install tools format.
>=20
> OPTIONS
>      The following options are supported by pkg convert:
>=20
>      -d pkg_dbdir, --pkg-dbdir pkg_dbdir
>              The location of the pkg_add(1) dbdir.  Defaults to /var/db=
/pkg.
>=20
>      -n, --dry-run
>              Dry-run mode.  Do not actually convert anything.  Just sho=
w what
>              would be done.
>=20
> What is this?  Looks obsolete to me, I thought the legacy pkg_install t=
ools format was long gone with no going back.
>=20
> I tried this with -n (dry-run) just for curiosity, and naturally it did=
n't work:
>=20
> I got
>=20
> pkg: Unable to open plist file: /var/db/pkg/texlive-texmf-20150523_3/+C=
ONTENTS
> Skipping invalid package: /var/db/pkg/texlive-texmf-20150523_3
>=20
> and many more like that.
>=20
> If this legacy functionality is long gone, why is it still in the man p=
age or "pkg help convert"?=20
>=20
> I saw it as recently as 11.1-PRERELEASE.

I believe the documentation is somewhat inaccurate: pkg-convert(8) will
convert the old pkg_tools format to pkg(8), but not the reverse.

Yes, this is pretty much of legacy interest only nowadays, but I suspect
there are still 8.x machines needing upgrade here and there.

	Cheers,

	Matthew




--2e3cd3Ql0NmQmLxRMV3EIlBtSOkahlS62--

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

-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJZR3L6XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATrNAP/jYwjsGu/r0/Yw4Yc0JXToSw
xPw9N9x+XUrQyMwOC+lEDg/ePTPKv83XEvGdFeEpK1bUXre94+VTq+qDbDFxLlfo
FGiza5m3/yavNEKVomjqAfIz4XnumjgPZOJQVDYg5+NRiVfYVhA9N7PQpTgHAOT7
Zv+xU5yT1UJipgkk4ETKaI7NC4+OLHzZ2GEuek4JWNFAHHT0edZqhc4ZN4CEd4mY
FQWHEaFULoJsXDuVy2SRLtv5QlnBCp3KIDdojP2MjAZ3Nb+qnMD70QzRb8I5gtfy
TjIrmgtSK/aVhwg/KP4CRE4UuoiLhGp4pV6PHgRy0jI0AZZAnFjxJztoobaMlPAp
xDN3FemonJ7FiMb/OycHQo2KXSfQ99vajFIXKSPivXZyAJqn2zgK5xb0pE5nCQSH
J1ufJSsUjj/BgH8j5TfZQ5faH3fhXQCb9/VaGpNCBM+tLI2512+pAapBrKx1VZUg
5vU1A7PGevdBhlZ2WvkQPPlE+trkBPJDymU8nXVH0KmQKYcGUgDSnZsDfOtikAPc
d8bgEvkF1FVGg+XXqgoOqWwWMnfqaElqbh4kT2fg8ZQs2TF5Z0qjX+OlJr97lKOQ
oZwCZGkzTiYgnurs06t1heRTBZ8aUh39VHt5xtQf7VtUEXoIPzbKvM9bM08WfvkB
BI9Ru04C+W8NIE/76YMa
=gbZ6
-----END PGP SIGNATURE-----

--MmX4FkWl45h8QjI6IreJI6EK0Vls3mq0T--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0e32b32b-5a8d-6f08-b969-9d3fd638d459>