Pause pkg install messages

Chris H portmaster at BSDforge.com
Thu May 24 15:19:07 UTC 2018


On Thu, 24 May 2018 15:39:39 +0100 "Johannes Lundberg" <johalun0 at gmail.com> said

> On Thu, May 24, 2018 at 3:25 PM Chris H <portmaster at bsdforge.com> wrote:
> 
> > On Thu, 24 May 2018 15:02:10 +0100 "Johannes Lundberg" <johalun0 at gmail.com>
> > said
> >
> > > On Thu, May 24, 2018 at 2:57 PM Chris H <portmaster at bsdforge.com> wrote:
> > >
> > > > On Thu, 24 May 2018 10:03:47 +0100 "Johannes Lundberg" <
> > johalun0 at gmail.com>
> > > > said
> > > >
> > > > > On Thu, May 24, 2018 at 9:27 AM Bob Eager <rde at tavi.co.uk> wrote:
> > > > >
> > > > > > On Thu, 24 May 2018 09:08:17 +0100
> > > > > > Johannes Lundberg <johalun0 at gmail.com> wrote:
> > > > > >
> > > > > > > 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.
> > > > > >
> > > > > > I have this in syslog.conf:
> > > > > >
> > > > > >  !pkg,pkg-static
> > > > > >  *.*                                             /var/log/pkg.log
> > > > > >
> > > > >
> > > > > Thanks for the tip. I'll use this.
> > > > > However, someone who knows about this probably know how to manually
> > > > > configure their system already.
> > > > >
> > > > > I want to make sure first timers and newbies don't miss important
> > > > messages
> > > > > on how to configure the system.
> > > > >
> > > > > Often we get inquires about stuff that is clearly described in the
> > pkg
> > > > > message and bug reports that are a consequence of wrong
> > configuration.
> > > > > How can we make this more clear so that it is not missed?
> > > > ports-mgmt/portmaster used (probably still does) to concatenate the
> > list
> > > > of (port emitted) messages, and dump them to the console/screen when
> > the
> > > > build/install session completed.
> > > > Perhaps pkg(8) could incorporate this, as well?
> > > >
> > >
> > > It does. The problem is there's no paging so all information is scrolled
> > > away unless you're on standby with scroll-lock which many computers don't
> > > have today...
> > Have you tried less(1) or more(1) ?
> > eg;
> >
> > $ cat ~/output-log | less
> >
> > or, more simply
> >
> > $ less < ./output-log
> >
> > HTH
> >
> 
> 
> You're totally missing the point.
Not entirely. :-)
I'm suggesting that there *are* solutions, and that
1) either (pkg) present them at the end of a session
or
2) these be documented/mentioned in the FreeBSD/pkg documentation (for
first timers)

FWIW given that (t)csh is the default shell && that PAGER is already defined
in ~/.cshrc as more(1) (which is less). "paging" a document/file should already
understood. :-)

So the indication that one should use (type)script(1) before starting a
build/install session (if one is concerned about details) is probably the
real issue here. Which would be a good candidate for the FreeBSD/pkg docs
IMHO.

--Chris

> The problem is, first timers are missing
> important information on how to configure the system when they install the
> packages for the first time. Many don't know in advance they have to pipe
> the output to a log file which they later can view with a pager.
> 
> 
> >
> > --Chris
> > >
> > >
> > >
> >
> >
> >




More information about the freebsd-ports mailing list