Pause pkg install messages

Chris H portmaster at BSDforge.com
Thu May 24 13:46:53 UTC 2018


On Thu, 24 May 2018 15:39:54 +0700 "Eugene Grosbein" <eugen at grosbein.net> said

> On 24.05.2018 15:08, Johannes Lundberg wrote:
> > Hi
> > 
> > The first thing me and probably many other do after install is
> > pkg install xxx yyy zzz
> > from console (meaning no scrollback buffer).
> > 
> > With xorg and friends this means hundreds of packets. After install all the
> > pkg messages are display and most of sometimes very valuable information is
> > just scrolled away.
> > 
> > Is there an easy way to fix* this by piping the output through less or
> > something to pause for each screen so that the messages just aren't
> > scrolled away?
> > 
> > In addition to that it would be nice (if it's not already done) to store
> > this information in a log file somewhere so that one can revisit and see
> > what needs to be manually configured for each installed package.
> > 
> > *by fix I mean something that does not put the burden on the user.
> 
> Installation/deinstallation of packages logged by default to
> /var/log/messages.
> Syscons console has scrollback buffer by default.
> If vt(4) has not, that's regression after syscons and should be fixed in the
> vt.
> 
> Also, one can have, for tcsh: alias pkg 'script -a /var/log/pkg.log
> pkg-static'
> So "pkg install xxx yyy zzz" adds fulls output to specified file.
+1

I simply fire
$ script ~/pkg-install-session

build, or pkg install

$ exit

Then grep(1) the results for desired info.
It also allows me to discover any (serious) warnings that may have
been emitted.

HTH

--Chris
>




More information about the freebsd-ports mailing list