Date: Thu, 24 May 2018 14:57:50 +0200 From: olli hauer <ohauer@gmx.de> To: FreeBSD <freebsd-ports@freebsd.org> Cc: Johannes Lundberg <johalun0@gmail.com> Subject: Re: Pause pkg install messages Message-ID: <09c4a2c1-94ff-a653-459f-ca46283bced6@gmx.de> In-Reply-To: <999c38f3-8127-6ffa-fad1-818566c2801a@quip.cz> References: <CAECmPwuOyHBkne7AVtPHXAi6KhgtQFq_OYsaCjd4BBP6Hat8OQ@mail.gmail.com> <20180524091741.59dbabf2@raksha.tavi.co.uk> <CAECmPwvDG=A4BJLH17YoWGcOP6hZh%2Bx4j0aD9uRf%2B29%2B=zZAJg@mail.gmail.com> <999c38f3-8127-6ffa-fad1-818566c2801a@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-05-24 11:21, Miroslav Lachman wrote: > Johannes Lundberg wrote on 2018/05/24 11:03: >> On Thu, May 24, 2018 at 9:27 AM Bob Eager <rde@tavi.co.uk> wrote: >> >>> On Thu, 24 May 2018 09:08:17 +0100 >>> Johannes Lundberg <johalun0@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 > > I think only changes are logged, not messages: > > Apr 26 23:50:22 maja pkg: p5-DBI reinstalled: 1.641 -> 1.641 > Apr 26 23:50:22 maja pkg: mariadb101-client upgraded: 10.1.31 -> 10.1.32_2 > Apr 26 23:50:22 maja pkg: libnghttp2 upgraded: 1.31.0 -> 1.31.1 > >> 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? > > As Eugene already noted - syscons has scrollback buffer. Did you tried "Scroll Lock" on your keyboard? > > If you need to re-show message of any installed package, "pkg info -D" (or pkg info --pkg-message) is your friend. Nothing is lost. You can view it anytime. > For mass updating you can try the script utility, on FreeBSD there is an additional '-q' parameter. $ script -q /tmp/MyScriptLog pkg .... $ col -xb < /tmp/MyScriptLog > /tmp/MyScriptLog.readable On other platforms: $ script /tmp/MyScriptLog $ pkg .... $ exit (exits only the script util) $ col -xb < /tmp/MyScriptLog > /tmp/MyScriptLog.readable Now all outputs are covered in the log (stdout and stderr) -- br. olli
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?09c4a2c1-94ff-a653-459f-ca46283bced6>