LinuxQuestions.org
Help answer threads with 0 replies.
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 01-04-2021, 12:36 AM   #1
Ressy
Member
 
Registered: Jan 2021
Location: Account Pending Deletion
Distribution: Slackware
Posts: 102

Rep: Reputation: 30
slackpkg no log?


Does slackpkg not have logging of what its done?

Seems a shortcoming if not, be rather handy to see what it did and when, if it does, I certainly can't locate where it stores this
 
Old 01-04-2021, 04:22 AM   #2
aiszisz
LQ Newbie
 
Registered: Dec 2020
Distribution: Slackware64 14.2
Posts: 28

Rep: Reputation: 11
Quote:
Originally Posted by Ressy View Post
Does slackpkg not have logging of what its done?

Seems a shortcoming if not, be rather handy to see what it did and when, if it does, I certainly can't locate where it stores this
I am not sure I understand your problem well, sorry If I give unnecessary information. )

in /var/log there are packages and removed_packages directories(and more) where you can see which packages have been installed or removed
with 'ls -l' you can see the dates too

If you want to see all of this in a log file I don't think it is exist but you can generate one with a script if you want.
 
Old 01-04-2021, 04:43 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
See some logs in /var/lib/slackpkg/install.log
 
Old 01-04-2021, 04:48 AM   #4
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by keefaz View Post
See some logs in /var/lib/slackpkg/install.log
FYI, this is a slackpkg+ feature.

--
SeB

Last edited by phenixia2003; 01-04-2021 at 04:49 AM.
 
Old 01-04-2021, 04:55 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Thumbs up

Quote:
Originally Posted by phenixia2003 View Post
Hello,



FYI, this is a slackpkg+ feature.

--
SeB
Ah! Thanks for the correction
 
Old 01-04-2021, 06:49 AM   #6
Ressy
Member
 
Registered: Jan 2021
Location: Account Pending Deletion
Distribution: Slackware
Posts: 102

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by keefaz View Post
See some logs in /var/lib/slackpkg/install.log
/var/lib/slackpkg/install.log: No such file or directory

Which reminds me, PACKAGES.TXT has weird data in it, php 5.6 2019 and so on, ummm I'm on a fresh install from a week ago, so no idea where it gets that crud from
 
Old 01-04-2021, 06:54 AM   #7
Ressy
Member
 
Registered: Jan 2021
Location: Account Pending Deletion
Distribution: Slackware
Posts: 102

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by aiszisz View Post
I am not sure I understand your problem well, sorry If I give unnecessary information. )

in /var/log there are packages and removed_packages directories(and more) where you can see which packages have been installed or removed
with 'ls -l' you can see the dates too

If you want to see all of this in a log file I don't think it is exist but you can generate one with a script if you want.
Thats exactly what I have been doing for years, but its a multi step half ##s'd way of going about it, RH and others have had an install log dating back to near when adam and eve were just babies

I know this is more of a slackware problem, since slackpkg just runs pkgtools in the end, but I've been round long enough to know that I don't have a snowflakes chance in hell of convincing Pat to fix that hehe
 
Old 01-04-2021, 08:42 AM   #8
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
I haven't tried it, but I should think you could create your own logs using tee to capture the output of slackpkg.
 
Old 01-05-2021, 06:53 AM   #9
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by Ressy View Post
Thats exactly what I have been doing for years, but its a multi step half ##s'd way of going about it, RH and others have had an install log dating back to near when adam and eve were just babies

I know this is more of a slackware problem, since slackpkg just runs pkgtools in the end, but I've been round long enough to know that I don't have a snowflakes chance in hell of convincing Pat to fix that hehe
Whenever I want to create a log I just send the results/output to a file.

Code:
~# ls -lah /var/lib/pkgtools/packages > /tmp/pkg.log 
~# dmesg > /tmp/dmesg.log
If you want to log all slackpkg (or any) screen content on-the-fly do something like this...

Code:
~# exec &> >(tee >(gawk '{ print strftime("[%Y%m%d-%H%M%S]"), $0 }' >> /tmp/slackpkg.log ) 2>&1) && slackpkg [** install/reinstall/update/check-updates **]
The slackpkg tool options '[** ... **]' are your prerogative. Not everything is as easy or facilitating as it could be (thankfully!) and there are very valid reasons why Slackware is what it is. If there's anything you need which is a constant requirement then you could always build a script for it. If not then just use it one time and forget about it. That's what I do to make things a little easier and less time consuming for myself.
 
  


Reply

Tags
slackpkg



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
How to log internal-sftp chroot jailed users access log to /var/log/sftp.log file LittleMaster Linux - Server 0 09-04-2018 03:45 PM
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM

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

All times are GMT -5. The time now is 07:45 AM.

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