Re: Pause pkg install messages
Paul Keusemann wrote on 2018/05/25 13:40: 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. I use screen to record the console session. Wow. Where was my mind? Script, not screen. Screen or tmux is useful too. They provide configurable scroll buffer. :) Miroslav Lachman ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On 05/24/18 06:45, Paul Keusemann wrote: On 05/24/18 03: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. I use screen to record the console session. Wow. Where was my mind? Script, not screen. Cheers /Johannes ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to"freebsd-ports-unsubscr...@freebsd.org" -- Paul Keusemann pkeu...@gmail.com 4266 Joppa Court (952) 894-7805 Savage, MN 55378 -- Paul Keusemann pkeu...@gmail.com 4266 Joppa Court (952) 894-7805 Savage, MN 55378 ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, 24 May 2018, Pete Wright wrote: On 05/24/2018 02:46, Johannes Lundberg wrote: 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. If you're in virtualbox on a laptop, you seldom have scroll lock unless you map it manually (which is not easy to know how to do). And, yes you can review the messages later but how do you know which of the 100's of package had important messages for you? Often when I install 100's of package I walk away from the computer and when I come back all the messages except the very last one or two have scrolled by. I think we should have a pager that says something like "please carefully read through these messages", halt the output and let's you scroll one page or pkg at the time. Even better, a Y/N question asking the user if they want configuration to be done for them where it makes sense (but that's a bigger project). I think having pkg output something along the lines of "missed important messages or want to view them again, run pkg info -D at any time. here's the list of pkgs we just installed:" would be a good improvement. it would encourage people to get more comfortable with the pkg tool itself while not changing the default behaviour that experienced admins/users have gotten used to. All FreeBSD systems by default come set up with the expectation that you (the admin) are going to receive mail from cron and periodic. I'd opt to also email this, on by default, but turn-offable. FWIW, I believe this is also what Debian does. Best, -Dan -- "It would be bad." -Egon Spengler, "Ghostbusters" Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC FB: fb.com/DanielMahoneyIV LI: linkedin.com/in/gushi Site: http://www.gushi.org --- ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On 05/24/2018 02:46, Johannes Lundberg wrote: 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. If you're in virtualbox on a laptop, you seldom have scroll lock unless you map it manually (which is not easy to know how to do). And, yes you can review the messages later but how do you know which of the 100's of package had important messages for you? Often when I install 100's of package I walk away from the computer and when I come back all the messages except the very last one or two have scrolled by. I think we should have a pager that says something like "please carefully read through these messages", halt the output and let's you scroll one page or pkg at the time. Even better, a Y/N question asking the user if they want configuration to be done for them where it makes sense (but that's a bigger project). I think having pkg output something along the lines of "missed important messages or want to view them again, run pkg info -D at any time. here's the list of pkgs we just installed:" would be a good improvement. it would encourage people to get more comfortable with the pkg tool itself while not changing the default behaviour that experienced admins/users have gotten used to. -pete -- Pete Wright p...@nomadlogic.org @nomadlogicLA ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, 24 May 2018 15:39:39 +0100 "Johannes Lundberg"said On Thu, May 24, 2018 at 3:25 PM Chris H wrote: > On Thu, 24 May 2018 15:02:10 +0100 "Johannes Lundberg" > said > > > On Thu, May 24, 2018 at 2:57 PM Chris H wrote: > > > > > On Thu, 24 May 2018 10:03:47 +0100 "Johannes Lundberg" < > johal...@gmail.com> > > > said > > > > > > > On Thu, May 24, 2018 at 9:27 AM Bob Eager wrote: > > > > > > > > > On Thu, 24 May 2018 09:08:17 +0100 > > > > > Johannes Lundberg 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 > > > > > > > > > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, May 24, 2018 at 3:25 PM Chris Hwrote: > On Thu, 24 May 2018 15:02:10 +0100 "Johannes Lundberg" > said > > > On Thu, May 24, 2018 at 2:57 PM Chris H wrote: > > > > > On Thu, 24 May 2018 10:03:47 +0100 "Johannes Lundberg" < > johal...@gmail.com> > > > said > > > > > > > On Thu, May 24, 2018 at 9:27 AM Bob Eager wrote: > > > > > > > > > On Thu, 24 May 2018 09:08:17 +0100 > > > > > Johannes Lundberg 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. 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 > > > > > > > > > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, 24 May 2018 15:02:10 +0100 "Johannes Lundberg"said On Thu, May 24, 2018 at 2:57 PM Chris H wrote: > On Thu, 24 May 2018 10:03:47 +0100 "Johannes Lundberg" > said > > > On Thu, May 24, 2018 at 9:27 AM Bob Eager wrote: > > > > > On Thu, 24 May 2018 09:08:17 +0100 > > > Johannes Lundberg 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 --Chris ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, May 24, 2018 at 2:57 PM Chris Hwrote: > On Thu, 24 May 2018 10:03:47 +0100 "Johannes Lundberg" > said > > > On Thu, May 24, 2018 at 9:27 AM Bob Eager wrote: > > > > > On Thu, 24 May 2018 09:08:17 +0100 > > > Johannes Lundberg 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... > > --Chris > > > > > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, May 24, 2018 at 07:00:02AM -0700, Chris H wrote: > On Thu, 24 May 2018 10:03:47 +0100 "Johannes Lundberg"> said > > > On Thu, May 24, 2018 at 9:27 AM Bob Eager wrote: > > > > > On Thu, 24 May 2018 09:08:17 +0100 > > > Johannes Lundberg 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? Have you already used pkg(8) ? Bapt signature.asc Description: PGP signature
Re: Pause pkg install messages
On Thu, 24 May 2018 10:03:47 +0100 "Johannes Lundberg"said On Thu, May 24, 2018 at 9:27 AM Bob Eager wrote: > On Thu, 24 May 2018 09:08:17 +0100 > Johannes Lundberg 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? --Chris ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, 24 May 2018 15:39:54 +0700 "Eugene Grosbein"said 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. +1 I simply fire $ script ~/pkg-install-session build, or pkg install $ exit Then grep(1) the results for desired info. It also allows me to discover any (serious) warnings that may have been emitted. HTH --Chris ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
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 Eagerwrote: >> >>> On Thu, 24 May 2018 09:08:17 +0100 >>> Johannes Lundberg 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 ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On 05/24/18 03: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. I use screen to record the console session. Cheers /Johannes ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" -- Paul Keusemann pkeu...@gmail.com 4266 Joppa Court (952) 894-7805 Savage, MN 55378 ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, May 24, 2018 at 10:21 AM Miroslav Lachman <000.f...@quip.cz> wrote: > Johannes Lundberg wrote on 2018/05/24 11:03: > > On Thu, May 24, 2018 at 9:27 AM Bob Eagerwrote: > > > >> On Thu, 24 May 2018 09:08:17 +0100 > >> Johannes Lundberg 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. > If you're in virtualbox on a laptop, you seldom have scroll lock unless you map it manually (which is not easy to know how to do). And, yes you can review the messages later but how do you know which of the 100's of package had important messages for you? Often when I install 100's of package I walk away from the computer and when I come back all the messages except the very last one or two have scrolled by. I think we should have a pager that says something like "please carefully read through these messages", halt the output and let's you scroll one page or pkg at the time. Even better, a Y/N question asking the user if they want configuration to be done for them where it makes sense (but that's a bigger project). > > > # pkg info -D mariadb101-server > mariadb101-server-10.1.33: > Always: > > > Remember to run mysql_upgrade (with the optional --datadir= flag) > the first time you start the MySQL server after an upgrade from an > earlier version. > > MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for > my.cnf. Please move existing my.cnf files from those paths to > /usr/local/etc and /usr/local/etc/mysql. > > This port does NOT include the mytop perl script, this is included in > the MariaDB tarball but the most recent version can be found in the > databases/mytop port > > > > Miroslav Lachman > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
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___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
Johannes Lundberg wrote on 2018/05/24 11:03: On Thu, May 24, 2018 at 9:27 AM Bob Eagerwrote: On Thu, 24 May 2018 09:08:17 +0100 Johannes Lundberg 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. # pkg info -D mariadb101-server mariadb101-server-10.1.33: Always: Remember to run mysql_upgrade (with the optional --datadir= flag) the first time you start the MySQL server after an upgrade from an earlier version. MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for my.cnf. Please move existing my.cnf files from those paths to /usr/local/etc and /usr/local/etc/mysql. This port does NOT include the mytop perl script, this is included in the MariaDB tarball but the most recent version can be found in the databases/mytop port Miroslav Lachman ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, May 24, 2018 at 9:27 AM Bob Eagerwrote: > On Thu, 24 May 2018 09:08:17 +0100 > Johannes Lundberg 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? > ___ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
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. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Pause pkg install messages
On Thu, 24 May 2018 09:08:17 +0100 Johannes Lundbergwrote: > 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 ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Pause pkg install messages
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. Cheers /Johannes ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"