From owner-freebsd-ports@freebsd.org Thu May 24 09:46:34 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 1180AF6FECD for ; Thu, 24 May 2018 09:46:34 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8E4F18053E for ; Thu, 24 May 2018 09:46:32 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 40s4Jx3MtGzZwK; Thu, 24 May 2018 11:46:25 +0200 (CEST) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id vjJEklYsxJ2o; Thu, 24 May 2018 11:46:13 +0200 (CEST) Received: from tommy.madpilot.net (host122-157-dynamic.180-80-r.retail.telecomitalia.it [80.180.157.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.madpilot.net (Postfix) with ESMTPSA; Thu, 24 May 2018 11:46:13 +0200 (CEST) Subject: Re: Pause pkg install messages To: Johannes Lundberg , FreeBSD References: From: Guido Falsi Message-ID: Date: Thu, 24 May 2018 11:46:13 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 09:46:34 -0000 On 05/24/18 10: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). FreeBSD console does have a scrollback buffer. just press scroll-lock and use the page up/page down buttons to move around the buffer. By default the buffer isn't very big so it could not suffice if the output is actually very very long. it can be configured using vidcontrol(1). > > 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? script(1) could save it to a file in realtime and you can read it from another terminal, and leave you a file with all the output. > > 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. pkg generates log lines about what it installs updates, which can be found in /var/log/messages with default syslogd configuration, for example: May 24 08:37:55 *** pkg[6058]: thunderbird upgraded: 52.8.0 -> 52.8.0_5 May 24 08:37:55 *** pkg[6058]: p5-DateTime upgraded: 1.48 -> 1.49 May 24 08:37:56 *** pkg[6058]: java-zoneinfo upgraded: 2018.d -> 2018.e May 24 08:38:02 *** pkg[6058]: firefox upgraded: 60.0.1,1 -> 60.0.1_3,1 May 24 08:38:02 *** pkg[6058]: devcpu-data upgraded: 1.16_1 -> 1.16_2 -- Guido Falsi