From owner-freebsd-ports@freebsd.org Thu May 24 13:46:53 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B74CFEF1B33 for ; Thu, 24 May 2018 13:46:53 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 42FBF6C669 for ; Thu, 24 May 2018 13:46:53 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: from udns.ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id w4ODnjjI024376; Thu, 24 May 2018 06:49:51 -0700 (PDT) (envelope-from portmaster@BSDforge.com) X-Mailer: UDNSMS MIME-Version: 1.0 Cc: "Eugene Grosbein" , "FreeBSD" In-Reply-To: <5B067A5A.40706@grosbein.net> From: "Chris H" Reply-To: portmaster@BSDforge.com To: "Johannes Lundberg" Subject: Re: Pause pkg install messages Date: Thu, 24 May 2018 06:49:51 -0700 Message-Id: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2018 13:46:53 -0000 On Thu, 24 May 2018 15:39:54 +0700 "Eugene Grosbein" s= aid > On 24=2E05=2E2018 15:08, Johannes Lundberg wrote: > > Hi > >=20 > > The first thing me and probably many other do after install is > > pkg install xxx yyy zzz > > from console (meaning no scrollback buffer)=2E > >=20 > > With xorg and friends this means hundreds of packets=2E After install all= the > > pkg messages are display and most of sometimes very valuable informatio= n is > > just scrolled away=2E > >=20 > > 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? > >=20 > > In addition to that it would be nice (if it's not already done) to stor= e > > this information in a log file somewhere so that one can revisit and se= e > > what needs to be manually configured for each installed package=2E > >=20 > > *by fix I mean something that does not put the burden on the user=2E >=20 > Installation/deinstallation of packages logged by default to > /var/log/messages=2E > Syscons console has scrollback buffer by default=2E > If vt(4) has not, that's regression after syscons and should be fixed in = the > vt=2E >=20 > Also, one can have, for tcsh: alias pkg 'script -a /var/log/pkg=2Elog > pkg-static' > So "pkg install xxx yyy zzz" adds fulls output to specified file=2E +1 I simply fire $ script ~/pkg-install-session build, or pkg install $ exit Then grep(1) the results for desired info=2E It also allows me to discover any (serious) warnings that may have been emitted=2E HTH --Chris >