Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2016 14:42:47 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Deriving base port/package names
Message-ID:  <5707B557.60104@freebsd.org>
In-Reply-To: <51300.1460083670@server1.tristatelogic.com>
References:  <51300.1460083670@server1.tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--KAQVapV1IJEf94eJ2bROp9t57UUH5ONvH
Content-Type: multipart/mixed; boundary="R6crquGueql6Xq9uan9W3J6DcU145UxXp"
From: Matthew Seaman <matthew@freebsd.org>
To: freebsd-ports@freebsd.org
Message-ID: <5707B557.60104@freebsd.org>
Subject: Re: Deriving base port/package names
References: <51300.1460083670@server1.tristatelogic.com>
In-Reply-To: <51300.1460083670@server1.tristatelogic.com>

--R6crquGueql6Xq9uan9W3J6DcU145UxXp
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 04/08/16 14:29, Roger Marquis wrote:
> Ronald F. Guilmette wrote:
>> what would be a proper sort of sed command to extract
>> _just_ the port/package names, without the version numbers attached?
>=20
> This has changed in the past so may not currently be 100% correct but
> these should work:
>=20
>   awk -F'-[0-9]' '{ print $1 }'
>=20
> or:
>=20
>   sed 's/-[0-9].*$//'
>=20
> It's a good question in any case and the answer{,s} should probably be
> added to pkg(8)'s EXAMPLES.

Well, assuming that you have the default FreeBSD pkg repo set up, then:

   pkg rquery -a %n

will give you a list of all the package names in the repo, which will be
pretty close to all the known ports/packages -- there's typically a few
that don't build properly.

	Cheers,

	Matthew





--R6crquGueql6Xq9uan9W3J6DcU145UxXp--

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

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

iQIcBAEBCgAGBQJXB7VfAAoJEABRPxDgqeTn+0oP/1GR5wCP9GY0lcq3DOiY4uhv
K88EE12M12hT5dUJKXQYYN5YvUJ+eGGuDVQ9x9q01NJS7VIaGzN5sSHy11Zk9QR4
xpSOlBKs28xyqDQgPKClRTQkdrcM6pM8EJfoZNivbXuacScXcXbClycYxnlgyRCd
tDagGXmA8aSx9ScnwCRN+jxQAyEUiRYqswscUgJ/DMzQnO9idgfdzPF/FS22IcVK
q23Cyyk8s+OVcXaekTD+ixmv91BhfuN9czaBYp/px45nxsEy3HuBA0Q57MbkXmg/
X2RxJgw5QEQ0hRQJBNTKTn6UvdKFhCZdEUK+l7fl0iXOAYZfjDFZqffpcl6RuAdb
WD2Tjf2WbR90PnvyZ5yy92zsijxRlb78CcXLbHk3GED6PPvH1Tf8hIkobKw84ijG
OGK4sE35wgXAIaFt4PHJ0AbFg3eFNWCKaro9OmQUXKByXI3UXQNP8B4PB+IikTZ2
chpiw6rcEgcOdIYDP21TPChuAzu4V0KEbv9QHUagxDoeUONcXXcVTT7BUuOUnyR4
5a9CYLltFpD1ZX9a9hQV12df+iKmaLUc/PDk6LW/32CyxkyoYADRJWiH6ByRS1MY
r62oy52W9SaTy1KqneYYNUg9e/m2bdXUIwfLqssOadiG/dxTu30CU/QdKx68MsAH
dJfM4cqEeFAJce355bZw
=sncj
-----END PGP SIGNATURE-----

--KAQVapV1IJEf94eJ2bROp9t57UUH5ONvH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5707B557.60104>