Re: pkg: how to retrieve the messages ports emit after install?

2020-03-18 Thread Chris

On Wed, 18 Mar 2020 17:31:53 +0100 Mateusz Piotrowski mpp...@gmail.com said


On 3/18/20 5:20 PM, Chris wrote:
> IMHO this should be added to the pkg(8) man page. Maybe the EXAMPLES 
> section?


https://github.com/freebsd/pkg/pull/1819

Cheers,

Mateusz

WOW! That was fast. Thank you!!! :)

--Chris


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: pkg: how to retrieve the messages ports emit after install?

2020-03-18 Thread Mateusz Piotrowski

On 3/18/20 5:20 PM, Chris wrote:
IMHO this should be added to the pkg(8) man page. Maybe the EXAMPLES 
section?


https://github.com/freebsd/pkg/pull/1819

Cheers,

Mateusz

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: pkg: how to retrieve the messages ports emit after install?

2020-03-18 Thread Chris

On Wed, 18 Mar 2020 14:20:05 + Bob Eager r...@tavi.co.uk said


On Wed, 18 Mar 2020 07:18:40 -0700
Chris  wrote:

> > > OK I'm a by ports make install as a rule. But I needed to
> > > spin up a box quickly, and decided to use pkg(8). xorg,
> > > and another port (package) I installed, dumped some
> > > important information after the install. I stripped the
> > > text from the console/terminal, and tried to paste it into
> > > a fresh file. But the new graphics drivers don't allow
> > > that sort of thing (graphics vs text mode). So I was left
> > > with mostly gibberish. I need to get that information back.
> > > I just guessed that pkg message  might do it.
> > > But no joy. How can I retrieve that information?  
> > 
> > Simple!
> > 
> >  pkg info -D pkgname
> > 
> > (or pkg info --pkg-message pkgname)  
> --pkg-message, argh... I was *so* close!

> Thanks, Bob. Really appreciated!
> and for the record. I *did* read the man page. But as others
> were also inclined to suggest; I thought the output would be
> related to *query*

As it happens, I had the same problem a few days ago and eventually got
round to a rather persistent search for the information!

I appreciate your persistence! I was going mad trying to figure it out.
IMHO this should be added to the pkg(8) man page. Maybe the EXAMPLES section?

Thanks again, Bob!

--Chris


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: pkg: how to retrieve the messages ports emit after install?

2020-03-18 Thread Stefan Eßer
Am 18.03.20 um 15:18 schrieb Chris:
> On Wed, 18 Mar 2020 08:27:29 + Bob Eager r...@tavi.co.uk said
> 
>> On Tue, 17 Mar 2020 23:28:49 -0700
>> Chris  wrote:
>>
>> > OK I'm a by ports make install as a rule. But I needed to
>> > spin up a box quickly, and decided to use pkg(8). xorg,
>> > and another port (package) I installed, dumped some
>> > important information after the install. I stripped the
>> > text from the console/terminal, and tried to paste it into
>> > a fresh file. But the new graphics drivers don't allow
>> > that sort of thing (graphics vs text mode). So I was left
>> > with mostly gibberish. I need to get that information back.
>> > I just guessed that pkg message  might do it.
>> > But no joy. How can I retrieve that information?
>>
>> Simple!
>>
>>  pkg info -D pkgname
>>
>> (or pkg info --pkg-message pkgname)
> --pkg-message, argh... I was *so* close!
> Thanks, Bob. Really appreciated!
> and for the record. I *did* read the man page. But as others
> were also inclined to suggest; I thought the output would be
> related to *query*

I do actually prefer the version I suggested based on
pkg query, since I find it quite hard to see message
boundaries in the pkg info output.

With pkg query you can introduce any kind of separators
(even multi-line) in the format string (and also print
the origin and other information along with the message).

Regards, STefan
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: pkg: how to retrieve the messages ports emit after install?

2020-03-18 Thread Bob Eager
On Wed, 18 Mar 2020 07:18:40 -0700
Chris  wrote:

> > > OK I'm a by ports make install as a rule. But I needed to
> > > spin up a box quickly, and decided to use pkg(8). xorg,
> > > and another port (package) I installed, dumped some
> > > important information after the install. I stripped the
> > > text from the console/terminal, and tried to paste it into
> > > a fresh file. But the new graphics drivers don't allow
> > > that sort of thing (graphics vs text mode). So I was left
> > > with mostly gibberish. I need to get that information back.
> > > I just guessed that pkg message  might do it.
> > > But no joy. How can I retrieve that information?  
> > 
> > Simple!
> > 
> >  pkg info -D pkgname
> > 
> > (or pkg info --pkg-message pkgname)  
> --pkg-message, argh... I was *so* close!
> Thanks, Bob. Really appreciated!
> and for the record. I *did* read the man page. But as others
> were also inclined to suggest; I thought the output would be
> related to *query*

As it happens, I had the same problem a few days ago and eventually got
round to a rather persistent search for the information!
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: pkg: how to retrieve the messages ports emit after install?

2020-03-18 Thread Chris

On Wed, 18 Mar 2020 08:27:29 + Bob Eager r...@tavi.co.uk said


On Tue, 17 Mar 2020 23:28:49 -0700
Chris  wrote:

> OK I'm a by ports make install as a rule. But I needed to
> spin up a box quickly, and decided to use pkg(8). xorg,
> and another port (package) I installed, dumped some
> important information after the install. I stripped the
> text from the console/terminal, and tried to paste it into
> a fresh file. But the new graphics drivers don't allow
> that sort of thing (graphics vs text mode). So I was left
> with mostly gibberish. I need to get that information back.
> I just guessed that pkg message  might do it.
> But no joy. How can I retrieve that information?

Simple!

 pkg info -D pkgname

(or pkg info --pkg-message pkgname)

--pkg-message, argh... I was *so* close!
Thanks, Bob. Really appreciated!
and for the record. I *did* read the man page. But as others
were also inclined to suggest; I thought the output would be
related to *query*

Thanks also, to everyone else who took the time to help!

--Chris


There are more complicated ways...



___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: pkg: how to retrieve the messages ports emit after install?

2020-03-18 Thread Bob Eager
On Tue, 17 Mar 2020 23:28:49 -0700
Chris  wrote:

> OK I'm a by ports make install as a rule. But I needed to
> spin up a box quickly, and decided to use pkg(8). xorg,
> and another port (package) I installed, dumped some
> important information after the install. I stripped the
> text from the console/terminal, and tried to paste it into
> a fresh file. But the new graphics drivers don't allow
> that sort of thing (graphics vs text mode). So I was left
> with mostly gibberish. I need to get that information back.
> I just guessed that pkg message  might do it.
> But no joy. How can I retrieve that information?

Simple!

  pkg info -D pkgname

(or pkg info --pkg-message pkgname)

There are more complicated ways...
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: pkg: how to retrieve the messages ports emit after install?

2020-03-18 Thread Andrea Venturoli

On 2020-03-18 07:28, Chris wrote:

OK I'm a by ports make install as a rule. But I needed to
spin up a box quickly, and decided to use pkg(8). xorg,
and another port (package) I installed, dumped some
important information after the install. I stripped the
text from the console/terminal, and tried to paste it into
a fresh file. But the new graphics drivers don't allow
that sort of thing (graphics vs text mode). So I was left
with mostly gibberish. I need to get that information back.
I just guessed that pkg message  might do it.
But no joy. How can I retrieve that information?


Not sure I understand what you are asking for...
Perhaps
"pkg info -D {pkgname}"
or
"pkg info -D -a"
?

"pkg help info" might also be useful.

Sorry if that's not what you were asking.

 bye
av.
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: pkg: how to retrieve the messages ports emit after install?

2020-03-18 Thread Stefan Eßer
Am 18.03.20 um 07:28 schrieb Chris:
> OK I'm a by ports make install as a rule. But I needed to
> spin up a box quickly, and decided to use pkg(8). xorg,
> and another port (package) I installed, dumped some
> important information after the install. I stripped the
> text from the console/terminal, and tried to paste it into
> a fresh file. But the new graphics drivers don't allow
> that sort of thing (graphics vs text mode). So I was left
> with mostly gibberish. I need to get that information back.
> I just guessed that pkg message  might do it.
> But no joy. How can I retrieve that information?

You may be looking for some variant of:

# pkg query -- '--- %n-%v ---\n%M'

Regards, STefan
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"