freebsd / pkg

Package management tool for FreeBSD. Help at #pkg on Libera Chat or pkg@FreeBSD.org
Other
748 stars 280 forks source link

Verbosity when logging to /var/log/messages (and printing to screen) #2094

Closed grahamperrin closed 1 year ago

grahamperrin commented 1 year ago

Label: thinking

Origins

A simple example:

% grep 10235 /var/log/messages
Dec 12 07:56:49 mowa219-gjp4-8570p-freebsd pkg[10235]: php81-curl-8.1.13 installed
Dec 12 07:56:49 mowa219-gjp4-8570p-freebsd pkg[10235]: php81-zlib-8.1.13 installed
Dec 12 07:56:49 mowa219-gjp4-8570p-freebsd pkg[10235]: php81-mbstring-8.1.13 installed
Dec 12 07:56:53 mowa219-gjp4-8570p-freebsd pkg[10235]: arcanist-lib-php81-20220518_1 installed
Dec 12 07:57:04 mowa219-gjp4-8570p-freebsd pkg[10235]: glib reinstalled: 2.74.3,2 -> 2.74.3,2 
% pkg query %o glib
devel/glib20
% 

– the subsequent query was, debatably, superfluous.

Use case (a more concrete example)

When reviewing and/or sharing content such as https://pastebin.com/raw/Bt4LdPKN (an extract from /var/log/messages, sorted alphabetically) and https://pastebin.com/raw/AiAArekm:

– instead, I used my memory to recall graphics/-related packages.

Thinking

At least in the context of the messages file, I can't imagine the additional line length being troublesome.


See also:

bapt commented 1 year ago

The origin is a technical detail of the ports tree, while pkg, do support it for convenience, it should remain a technical detail, the package name is what should matter.

grahamperrin commented 1 year ago

OK, thanks, shall we close this issue?