From owner-freebsd-ports@freebsd.org Thu May 24 08:40:07 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 E3E48F6D8F3 for ; Thu, 24 May 2018 08:40:06 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 660067DBD3 for ; Thu, 24 May 2018 08:40:05 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w4O8dwvL013383 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 May 2018 10:39:58 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: johalun0@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id w4O8dsOL085024; Thu, 24 May 2018 15:39:54 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Pause pkg install messages To: Johannes Lundberg , FreeBSD References: From: Eugene Grosbein X-Enigmail-Draft-Status: N1110 Message-ID: <5B067A5A.40706@grosbein.net> Date: Thu, 24 May 2018 15:39:54 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=4.2 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_24_48, LOCAL_FROM,RDNS_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * 2.0 DATE_IN_FUTURE_24_48 Date: is 24 to 48 hours after Received: date * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-Spam-Level: **** 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 08:40:07 -0000 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.