LinuxQuestions.org
Visit Jeremy's Blog.
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 11-15-2020, 12:18 PM   #1
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
slackpkg clean-system wants to remove /var/log/packages as a package


Hi everyone,

I am on Slackware64-current, now, and loving it!
However, after performing the latest updates of today, i.e. Sun Nov 15 00:02:28 UTC 2020, I also ran

Code:
slackpkg clean-system
To my surprise, the list of packages to be removed contains /var/log/packages. Which isn't a package as such, actually, right? I must have accidently done something severely stupid, but I have no idea, what it could be.

I really have no clue what's going on here. Does anyone else see this?
I'd appreciate any recommendation how to find out, how this directory made it into the list...
Thanks in advance!

gargamel
 
Old 11-15-2020, 03:56 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Can you provide the actual output?
 
2 members found this post helpful.
Old 11-16-2020, 02:55 AM   #3
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551
Yes please provide an output if you can. No issues here.
 
1 members found this post helpful.
Old 11-16-2020, 03:29 AM   #4
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by bassmadrigal View Post
Can you provide the actual output?
Sure, find a screenshot attached. Probably slackpkg writes some log files, too. Where do I find them? (No hint in the man page).

gargamel
Attached Thumbnails
Click image for larger version

Name:	clean-system_removes_var_log_packages.png
Views:	217
Size:	29.7 KB
ID:	34589  
 
Old 11-16-2020, 03:45 AM   #5
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
is that not simply removing entries of packages that won't exist any more i.e simply an updating of /var/log/packages ?
 
Old 11-16-2020, 05:18 AM   #6
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551
Well that's definitely not supposed to be there.

Did you select those items or where they selected automatically?

Do you have slackpkg+ installed? I am thinking no.

The items in the list are not Slackware packages (as it should be), except for that one /var/log/packages item.

I am also guessing your are not using /etc/slackpkg/blacklist.

I looks like you might have multilib installed too.

The only thing I can think of at this point to rebuild the slackpkg database.
From root of course:
Code:
rm -rf /var/cache/packages
rm -rf /var/lib/slackpkg
slackpkg update gpg
slackpkg update
This assumes you have /etc/slackpkg/mirrors pointing to a valid mirror.

Last edited by chrisretusn; 11-16-2020 at 05:21 AM.
 
1 members found this post helpful.
Old 11-16-2020, 07:19 AM   #7
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by chrisretusn View Post
Well that's definitely not supposed to be there.

Did you select those items or where they selected automatically?

Do you have slackpkg+ installed? I am thinking no.

The items in the list are not Slackware packages (as it should be), except for that one /var/log/packages item.

I am also guessing your are not using /etc/slackpkg/blacklist.

I looks like you might have multilib installed too.
All correct. I selected the 3rd part packages manually, because I want to keep most of them.

Quote:

The only thing I can think of at this point to rebuild the slackpkg database.
From root of course:
Code:
rm -rf /var/cache/packages
rm -rf /var/lib/slackpkg
slackpkg update gpg
slackpkg update
This assumes you have /etc/slackpkg/mirrors pointing to a valid mirror.
Thanks, just tried it, but /var/log/packages is still included in the list of packages to be removed for a "clean" system.
To be honest, I am a little afraid that having slackpkg remove /var/log/packages will do quite a bit more than removing 3rd party packages. If this wasn't my main box I'd give it try and see, what would happen...

Thanks anyhow, good advice in any case, just not quite there, yet.

gargamel
 
Old 11-16-2020, 07:36 AM   #8
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380

Rep: Reputation: 77
Quote:
Originally Posted by gargamel View Post
All correct. I selected the 3rd part packages manually, because I want to keep most of them.



Thanks, just tried it, but /var/log/packages is still included in the list of packages to be removed for a "clean" system.
To be honest, I am a little afraid that having slackpkg remove /var/log/packages will do quite a bit more than removing 3rd party packages. If this wasn't my main box I'd give it try and see, what would happen...

Thanks anyhow, good advice in any case, just not quite there, yet.

gargamel
I let slackpkg try and remove \var\log\packages and did not receive an error. It didn't actually remove it that I am aware of.

*edited to say that I did not receive an error.

Last edited by Bertman123; 11-16-2020 at 08:09 AM.
 
1 members found this post helpful.
Old 11-16-2020, 07:39 AM   #9
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Did you recently upgrade from 14.2 to current?

The location of /var/log/packages was moved to /var/lib/pkgtools/packages with only a symlink in the log directory to the lib directory.

I'm wondering if the package list is out of place on your system?
 
1 members found this post helpful.
Old 11-16-2020, 08:10 AM   #10
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380

Rep: Reputation: 77
I just edited my comment because I can't read. :-p I did not receive an error at all.
 
Old 11-16-2020, 08:46 AM   #11
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
it must be something wrong with dialog interface when you feed dialog widget
 
Old 11-16-2020, 10:50 AM   #12
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Can you provide the output of the following?

Code:
ls -l /var/lib/pkgtools/packages/*package*
 
2 members found this post helpful.
Old 11-16-2020, 03:16 PM   #13
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380

Rep: Reputation: 77
Quote:
Originally Posted by bassmadrigal View Post
Can you provide the output of the following?

Code:
ls -l /var/lib/pkgtools/packages/*package*
Here's the output on my system.

Code:
$ ls -l /var/lib/pkgtools/packages/*package*
-rw-r--r-- 1 root root 8003 Nov 15 13:36 /var/lib/pkgtools/packages/kpackage-5.76.0-x86_64-1_vtown_1
 
Old 11-16-2020, 05:24 PM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Definitely not a rogue entry in /var/lib/pkgtools/packages/...

Now some questions to see if we can find out what could've caused this...

How did you get to your present version from what was installed? (Did you install 14.2 and update to -current or did you directly install -current?)
How long has your system been on -current?
How frequently do you upgrade your -current install?
What version of slackpkg are you using (and slackpkg+, if that's installed)? (ls -l /var/lib/pkgtools/packages/*slackpkg*)
 
1 members found this post helpful.
Old 11-16-2020, 05:29 PM   #15
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
And out of curiosity, does the following command provide anything?

Code:
slackpkg info /var/log/packages
 
1 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
[SOLVED] iptables troubleshooting icmp and best place to log /var/log/messages or /var/log/iptables JockVSJock Linux - Security 18 02-12-2016 12:31 AM
slackpkg search problem - not using /var/log/packages? plunder Slackware 2 09-21-2010 05:15 PM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 04:13 PM
/var/log/packages and /var/log/setup sunny_5252 Slackware 4 05-17-2007 08:17 PM
me wants cluster me wants cluster me wants cluster funkymunky Linux - Networking 3 01-06-2004 07:51 AM

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

All times are GMT -5. The time now is 03:19 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