Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 2021 19:05:06 -1000
From:      "parv/freebsd" <parv.0zero9+freebsd@gmail.com>
To:        Mel Pilgrim <list_freebsd@bluerosetech.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Package naming conventions (?)
Message-ID:  <CABObuOomnCpVryaLN6F3Pp6buhfPuNDHxx_L%2BEA%2BiRW0x3XUOA@mail.gmail.com>
In-Reply-To: <4f64bca8-c3e6-01d8-3777-8ed10003d415@bluerosetech.com>
References:  <34017.1640919003@segfault.tristatelogic.com> <4f64bca8-c3e6-01d8-3777-8ed10003d415@bluerosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000029fa6705d46a22fd
Content-Type: text/plain; charset="UTF-8"

On Thu, Dec 30, 2021 at 6:53 PM Mel Pilgrim wrote:

> On 2021-12-30 18:50, Ronald F. Guilmette wrote:
>
...

> > In general, full package names end with a version number which consists
> > exclusively of digits, periods, commas, and underscores.  Thus the
> > *generalized* (non-version-specific) package names for all currently
> > installed packages may, generally speaking, be derived thusly:
> >
> >      pkg info | awk '{print $1}' | sed -E 's/-([0-9]|,|_|\.)+$//'
>
> Do this instead:
>
> pkg query '%n'
>

Thank you.


 - parv
--

--00000000000029fa6705d46a22fd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace">On Thu, Dec 30, 2021 at 6:53 PM Mel Pilgrim wrote:<br><=
/div></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi=
ng-left:1ex">On 2021-12-30 18:50, Ronald F. Guilmette wrote:<br></blockquot=
e><div><span class=3D"gmail_default" style=3D"font-family:monospace">...</s=
pan>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt; In general, full package names end with a version number which consist=
s<br>
&gt; exclusively of digits, periods, commas, and underscores.=C2=A0 Thus th=
e<br>
&gt; *generalized* (non-version-specific) package names for all currently<b=
r>
&gt; installed packages may, generally speaking, be derived thusly:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0 pkg info | awk &#39;{print $1}&#39; | sed -E &#39;=
s/-([0-9]|,|_|\.)+$//&#39;<br>
<br>
Do this instead:<br>
<br>
pkg query &#39;%n&#39;<br></blockquote><div><br></div><div><div style=3D"fo=
nt-family:monospace" class=3D"gmail_default">Thank you.</div><div style=3D"=
font-family:monospace" class=3D"gmail_default"><br></div><div style=3D"font=
-family:monospace" class=3D"gmail_default"><br></div><div style=3D"font-fam=
ily:monospace" class=3D"gmail_default">=C2=A0- parv</div><div style=3D"font=
-family:monospace" class=3D"gmail_default"></div></div><div style=3D"font-f=
amily:monospace" class=3D"gmail_default">-- <br></div><div style=3D"font-fa=
mily:monospace" class=3D"gmail_default"></div></div></div>

--00000000000029fa6705d46a22fd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOomnCpVryaLN6F3Pp6buhfPuNDHxx_L%2BEA%2BiRW0x3XUOA>