LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-29-2011, 06:40 AM   #1
lopid
Member
 
Registered: Jun 2008
Posts: 156

Rep: Reputation: Disabled
Question Slackware Install Log


When installing Slackware 13.37 using the terse option (in Virtualbox), I noticed a couple of packages didn't install properly - something about not being able to run doinst.sh. I obviously need to reinstall them, but I didn't catch the names of all the packages; it was just luck that I happened to glance at them at the time. Does Slackware save a log of these messages?
 
Old 05-29-2011, 07:09 AM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi lopid, Have a look at /var/log/packages.

Code:
ls /var/log/packages/ > pkgs.txt
Should create a text file with a list of all installed packages on the system.

Good luck. ;-)
 
Old 05-29-2011, 07:37 AM   #3
lopid
Member
 
Registered: Jun 2008
Posts: 156

Original Poster
Rep: Reputation: Disabled
Sorry, I meant a log of the install messages, particularly any errors or warnings, not the packages themselves.
 
1 members found this post helpful.
Old 03-30-2023, 09:34 AM   #4
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Rep: Reputation: Disabled
Quote:
Originally Posted by lopid View Post
Sorry, I meant a log of the install messages, particularly any errors or warnings, not the packages themselves.
I know this thread is very old but I see a reply was never given.
This is what I do, redirect the output to a file

Code:
./prog.SlackBuild > logtxt
It's far from a perfect solution because you no longer get the output to the screen.
In my case I knew the install had gone as far as it could go because my laptop crashed!
 
Old 03-30-2023, 12:41 PM   #5
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 959

Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Quote:
Originally Posted by SAJM View Post
I know this thread is very old but I see a reply was never given.
This is what I do, redirect the output to a file

Code:
./prog.SlackBuild > logtxt
Usually you do that as you want to save error messages to that log file. However, often error messages are written to stderr instead of stdout. To also get the error messages to the file you will need to:

Code:
./prog.SlackBuild >& logtxt
(with bash it is also possible to separate stdout and stderr to different files)

regards Henrik
 
Old 03-30-2023, 01:21 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by henca View Post
Usually you do that as you want to save error messages to that log file. However, often error messages are written to stderr instead of stdout. To also get the error messages to the file you will need to:

Code:
./prog.SlackBuild >& logtxt
(with bash it is also possible to separate stdout and stderr to different files)

regards Henrik
Man, the OP of this long time dead thread looked in the year of 2011 for the full log of the Slackware installer, with the errors and warnings and whatever else. He does NOT looked for the logs of SlackBuilds.

Anyway, such of thing (an installer log) does not exists even today, 12 years later, on the installer shipped by the soon to be Slackware 15.1 .

Last edited by LuckyCyborg; 03-30-2023 at 01:34 PM.
 
Old 03-30-2023, 01:34 PM   #7
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Rep: Reputation: Disabled
I just gave slackbuilds as an example for a typical logging senario.
The thread was still open and felt a reply would do no harm.
The details are still valid are they not?
 
Old 03-30-2023, 01:38 PM   #8
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by SAJM View Post
I just gave slackbuilds as an example for a typical logging senario.
The thread was still open and felt a reply would do no harm.
The details are still valid are they not?
You responded fully off-topic, because the OP of this thread wanted a log of what is done when is installed Slackware with its installer by booting the install DVD (probably CD at that time), it's NOT about SlackBuilds.

It's about the installer and it's logging couldn't be solved with an output redirection. Simply because the Slackware tools (scripts) wasn't written with the activity logging in mind.

Anyway, in this LQ no thread is locked unless goes wild. And just because you can post in a thread after 12 years, does NOT mean that you should post totally off-topic in a 12 years old thread.

Last edited by LuckyCyborg; 03-30-2023 at 01:49 PM.
 
Old 03-30-2023, 01:50 PM   #9
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Rep: Reputation: Disabled
You are correct, I missed his 1st message and did go off topic. I humbly beg leave to apologise.
 
Old 03-30-2023, 03:34 PM   #10
lopid
Member
 
Registered: Jun 2008
Posts: 156

Original Poster
Rep: Reputation: Disabled
Thanks :-)

I can't remember how the installation was initiated but it probably used dialog interactively. If it was just a simple one shot command I could indeed have redirected both stdout and stderr to both the terminal and a file, using tee. However, I would not have thought to do that ahead of time, because I wouldn't have anticipated anything going wrong.

You'll be glad to know I'm no longer looking for the missing packages.
 
Old 03-30-2023, 04:22 PM   #11
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Rep: Reputation: Disabled
Quote:
Originally Posted by lopid View Post
Thanks :-)

I can't remember how the installation was initiated but it probably used dialog interactively. If it was just a simple one shot command I could indeed have redirected both stdout and stderr to both the terminal and a file, using tee. However, I would not have thought to do that ahead of time, because I wouldn't have anticipated anything going wrong.

You'll be glad to know I'm no longer looking for the missing packages.
It's good of you to reply after all this time.
I learnt a bit because I never thought of stderr.
I also learnt some people take off topic very very seriously indeed - won't make that mistake again. LOL
 
1 members found this post helpful.
Old 03-30-2023, 11:35 PM   #12
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 501

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
https://xkcd.com/979/

May this topic rest in peace.
 
Old 03-31-2023, 10:59 AM   #13
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,542

Rep: Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310
Quote:
Originally Posted by lopid View Post
When installing Slackware 13.37 using the terse option (in Virtualbox), I noticed a couple of packages didn't install properly - something about not being able to run doinst.sh. I obviously need to reinstall them, but I didn't catch the names of all the packages; it was just luck that I happened to glance at them at the time. Does Slackware save a log of these messages?
If you're up for it, you can boot the Installer and apply this patch before you begin installation.
This has been in the ARM port for years and I haven't got around to upstreaming it.
The install log is dropped into /tmp within the installed OS, so you can review it after first boot (or from within the installer directly if you use one of the other shells and look in /mnt/tmp )

Code:
root@bladswede:~/ac/source/installer/arm# cat installer-patches/slackinstall-logerror.diff 
--- usr/lib/setup/slackinstall.orig     2017-11-23 14:55:02.738365359 +0000
+++ usr/lib/setup/slackinstall  2017-11-23 14:58:45.053362380 +0000
@@ -134,14 +134,17 @@
     fi
     sleep 1
     # Install the package series:
+    mkdir -pm1777 $ROOTDIR/tmp
     for package in $SRCPATH/$series/*.t?z ; do
       if [ "$MODE" = "full" ]; then # install the package
         [ "x$REMOTESVR" != "x" ] && get_pkg $series $(basename $package) '-q'
-        installpkg -root $ROOTDIR -infobox -priority ADD $package
+        printf "\nInstall report for $package:\n" >> $ROOTDIR/tmp/installpkg-report.log
+        installpkg -root $ROOTDIR -infobox -priority ADD $package 2>> $ROOTDIR/tmp/installpkg-report.log
         ERROR=$?
       elif [ "$MODE" = "terse" ]; then # install the package with terse description
         [ "x$REMOTESVR" != "x" ] && get_pkg $series $(basename $package) '-q'
-        installpkg -root $ROOTDIR -terse -priority ADD $package
+        printf "\nInstall report for $package:\n" >> $ROOTDIR/tmp/installpkg-report.log
+        installpkg -root $ROOTDIR -terse -priority ADD $package 2>> $ROOTDIR/tmp/installpkg-report.log
         ERROR=$?
       else
        if [ "x$REMOTESVR" != "x" ]; then
@@ -149,7 +152,8 @@
          $TMP/tagfiles/$1/tagfile | grep -qw SKP \
          || get_pkg $series $(basename $package) '-q'
        fi
-        installpkg -root $ROOTDIR -menu -tagfile $TMP/tagfiles/$1/tagfile $package
+        printf "\nInstall report for $package:\n" >> $ROOTDIR/tmp/installpkg-report.log
+        installpkg -root $ROOTDIR -menu -tagfile $TMP/tagfiles/$1/tagfile $package 2>> $ROOTDIR/tmp/installpkg-report.log
         ERROR=$?
       fi
       if [ ! $ERROR = 0 ]; then
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error attempting to install /var/log/mount/slackware/a/kernel-modules-smp-2.6.2 v@ny@ Slackware - Installation 10 05-19-2010 01:40 AM
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 04:14 PM
Slackware Log in screen moks107 Linux - Newbie 5 05-04-2009 08:09 AM
How do I log into Slackware? Mr. Hill Slackware 11 02-16-2005 05:04 PM
Can't log in after slackware 9 install incendui Slackware 3 05-12-2003 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration