LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-17-2020, 02:44 AM   #16
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,949

Rep: Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531

Quote:
Originally Posted by Bertman123 View Post
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.
I assume it still shows then with 'slackpkg clean-system'

This reply gave me an idea.
Quote:
Originally Posted by igadoter View Post
it must be something wrong with dialog interface when you feed dialog widget
This will take the ncurses display out of the picture. It will show a listing of files instead of a dialog.

Take care not to tap "y" or hit the "enter key" at the "Do you wish to remove selected packages (Y/n)? " prompt

Code:
slackpkg -dialog=off clean-system
Is the "/var/log/packages" still listed?

Last edited by chrisretusn; 11-17-2020 at 02:47 AM.
 
1 members found this post helpful.
Old 11-17-2020, 05:27 AM   #17
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
First of all, thanks for all your kind help!

Now, one by one:

@chrisretusn

Good idea, however the list output by
Code:
slackpkg -dialog=off clean-system
has /var/log/packages included as a package entry, too. So, I guess that it's probably not an ncurses problem.

Code:
# slackpkg -dialog=off clean-system
[...]
duply-2.2.2-x86_64-1_SBo
fox-toolkit-1.6.54-x86_64-1_SBo
/var/log/packages
jstock-1.0.7.44-x86_64-1ponce
julia-1.3.1-x86_64-1ponce
[...]



@bassmadrigal
Code:
$ ls -l /var/lib/pkgtools/packages/*package*
-rw-r--r-- 1 root root 8003 Nov 15 17:49 /var/lib/pkgtools/packages/kpackage-5.76.0-x86_64-1_vtown
Code:
slackpkg info /var/log/packages
==> output is empty

Regarding your questions:
Quote:
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*)
I upgraded from Slackware64-14.2 to -current, when vtown was included.
I follow the changelog quite closely, so far, system is updated/upgraded daily.
I have slackpkg-2.83.0-noarch-4 installed.
No slackpkg++ (yet).



@Bertman123, @bassmadrigal
Code:
# ls /var/lib/pkgtools/packages/*package*
/var/lib/pkgtools/packages/kpackage-5.76.0-x86_64-1_vtown_1
(exactly what you get, too, and same result when invoked as normal user (not root), BTW)

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

Rep: Reputation: 77
I did a fresh install of 14.2 (without kde) when kde5 was moved to testing. I made sure 14.2 was fully updated and then upgraded to current. Once I made sure that was working nicely I then switched to testing and installed kde5. I noticed that slackpkg clean-system started showing /var/log/packages as an option to remove only a few days ago - maybe 2 or 3.
 
1 members found this post helpful.
Old 11-17-2020, 11:40 AM   #19
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by Chuck56 View Post
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?
The package list is at the new location with /var/log/packages as a symlink pointing to it, as it should be.
 
Old 11-17-2020, 11:45 AM   #20
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by gargamel View Post
The package list is at the new location with /var/log/packages as a symlink pointing to it, as it should be.
I recommend making a backup of /var/lib/pkgtools/packages then only selecting /var/log/packages on the clean-system dialog. Let it rip and see what happens. Worst case is you restore the directory and continue the thread seeking answers.
 
1 members found this post helpful.
Old 11-17-2020, 11:50 AM   #21
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by Bertman123 View Post
I did a fresh install of 14.2 (without kde) when kde5 was moved to testing. I made sure 14.2 was fully updated and then upgraded to current. Once I made sure that was working nicely I then switched to testing and installed kde5. I noticed that slackpkg clean-system started showing /var/log/packages as an option to remove only a few days ago - maybe 2 or 3.
Not sure when it first appeared here, but I think it was a bit more than three days. Before that I am not sure, if it was not there, or if I just had not noticed it. Anyhow, it's interesting that you see it, too, despite starting with a fresh install, whereas I just upgraded my mainbox.

So, it seems that something is or has been confusing slackpkg. Question is, what it is.

gargamel
 
Old 11-17-2020, 12:03 PM   #22
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Since you upgraded instead of a new install, make sure you upgraded slackpkg to version 2.83.0 on -current vs 2.28.1 on 14.2. Just making sure you are on the most recent version.
 
1 members found this post helpful.
Old 11-17-2020, 03:02 PM   #23
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by Chuck56 View Post
Since you upgraded instead of a new install, make sure you upgraded slackpkg to version 2.83.0 on -current vs 2.28.1 on 14.2. Just making sure you are on the most recent version.
Thanks, good thought, but I currently have slackpkg version 2.83.0-noarch-4 already.
 
Old 11-17-2020, 03:04 PM   #24
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by Chuck56 View Post
I recommend making a backup of /var/lib/pkgtools/packages then only selecting /var/log/packages on the clean-system dialog. Let it rip and see what happens. Worst case is you restore the directory and continue the thread seeking answers.
Thanks, seems worth a try. However, although I can follow your logic, it sounds a bit risky to me, and as it is my main box and I am currently quite busy and needing it, I'll postpone this experiment to the weekend.
 
Old 11-17-2020, 03:47 PM   #25
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380

Rep: Reputation: 77
Quote:
Originally Posted by Chuck56 View Post
I recommend making a backup of /var/lib/pkgtools/packages then only selecting /var/log/packages on the clean-system dialog. Let it rip and see what happens. Worst case is you restore the directory and continue the thread seeking answers.

Code:
Package: /var/log/packages                                                           │ │  
        Removing... │                                                                │ │  
No such package: packages. Can't remove.                                             │ │  
ls: cannot access '/var/log/removed_packages//var/log/packages': No such file or directory
This is the error I get when trying to remove via clean-system. Doesn't affect my system in any way that I can tell.
 
1 members found this post helpful.
Old 11-17-2020, 05:02 PM   #26
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by Bertman123 View Post
Code:
Package: /var/log/packages                                                           │ │  
        Removing... │                                                                │ │  
No such package: packages. Can't remove.                                             │ │  
ls: cannot access '/var/log/removed_packages//var/log/packages': No such file or directory
This is the error I get when trying to remove via clean-system. Doesn't affect my system in any way that I can tell.
Thanks a lot for taking the plunge, really helpful!
Good to know that no harm is done to the system, most likely.
 
Old 11-17-2020, 06:14 PM   #27
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380

Rep: Reputation: 77
Quote:
Originally Posted by gargamel View Post
Thanks a lot for taking the plunge, really helpful!
Good to know that no harm is done to the system, most likely.

You're welcome.
 
Old 11-18-2020, 02:49 AM   #28
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,949

Rep: Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531
If you have not already done so, it might be worth a try to remove slackpkg (with removepkg of course) and then installing it again.

Another would be make sure you have all the right directories installed, linked.
Code:
/var/lib/pkgtools# ls -l
drwxr-xr-x 2 root root   4096 May 15  2020 douninst.sh/
drwxr-xr-x 2 root root 143360 Nov 17 21:32 packages/
lrwxrwxrwx 1 root root     35 Jun 23  2018 removed_packages -> ../../log/pkgtools/removed_packages/
lrwxrwxrwx 1 root root     34 Jun 23  2018 removed_scripts -> ../../log/pkgtools/removed_scripts/
drwxr-xr-x 2 root root 110592 Nov 17 21:32 scripts/
drwxr-xr-x 3 root root   4096 Nov  6 23:07 setup/
Code:
/var/log# ls -ld packages pkgtools removed_packages removed_scripts removed_uninstall_scripts scripts setup
lrwxrwxrwx 1 root root   26 Nov 18 16:47 packages -> /var/lib/pkgtools/packages/
drwxr-xr-x 5 root root 4096 May 15  2020 pkgtools/
lrwxrwxrwx 1 root root   25 Jun 23  2018 removed_packages -> pkgtools/removed_packages/
lrwxrwxrwx 1 root root   24 Jun 23  2018 removed_scripts -> pkgtools/removed_scripts/
lrwxrwxrwx 1 root root   34 Apr  3  2020 removed_uninstall_scripts -> pkgtools/removed_uninstall_scripts/
lrwxrwxrwx 1 root root   23 Jun 23  2018 scripts -> ../lib/pkgtools/scripts/
lrwxrwxrwx 1 root root   21 Jun 23  2018 setup -> ../lib/pkgtools/setup/
I am pretty sure you do but won't hurt to check.

Last edited by chrisretusn; 11-18-2020 at 02:57 AM.
 
1 members found this post helpful.
Old 11-18-2020, 08:36 AM   #29
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380

Rep: Reputation: 77
Quote:
Originally Posted by chrisretusn View Post
If you have not already done so, it might be worth a try to remove slackpkg (with removepkg of course) and then installing it again.

Another would be make sure you have all the right directories installed, linked.
Code:
/var/lib/pkgtools# ls -l
drwxr-xr-x 2 root root   4096 May 15  2020 douninst.sh/
drwxr-xr-x 2 root root 143360 Nov 17 21:32 packages/
lrwxrwxrwx 1 root root     35 Jun 23  2018 removed_packages -> ../../log/pkgtools/removed_packages/
lrwxrwxrwx 1 root root     34 Jun 23  2018 removed_scripts -> ../../log/pkgtools/removed_scripts/
drwxr-xr-x 2 root root 110592 Nov 17 21:32 scripts/
drwxr-xr-x 3 root root   4096 Nov  6 23:07 setup/
Code:
/var/log# ls -ld packages pkgtools removed_packages removed_scripts removed_uninstall_scripts scripts setup
lrwxrwxrwx 1 root root   26 Nov 18 16:47 packages -> /var/lib/pkgtools/packages/
drwxr-xr-x 5 root root 4096 May 15  2020 pkgtools/
lrwxrwxrwx 1 root root   25 Jun 23  2018 removed_packages -> pkgtools/removed_packages/
lrwxrwxrwx 1 root root   24 Jun 23  2018 removed_scripts -> pkgtools/removed_scripts/
lrwxrwxrwx 1 root root   34 Apr  3  2020 removed_uninstall_scripts -> pkgtools/removed_uninstall_scripts/
lrwxrwxrwx 1 root root   23 Jun 23  2018 scripts -> ../lib/pkgtools/scripts/
lrwxrwxrwx 1 root root   21 Jun 23  2018 setup -> ../lib/pkgtools/setup/
I am pretty sure you do but won't hurt to check.
Code:
/var/lib/pkgtools# ls -l
total 192
drwxr-xr-x 2 root root   4096 May 15  2020 douninst.sh
drwxr-xr-x 2 root root 110592 Nov 18 09:24 packages
lrwxrwxrwx 1 root root     35 Nov  6 12:04 removed_packages -> ../../log/pkgtools/removed_packages
lrwxrwxrwx 1 root root     34 Nov  6 12:04 removed_scripts -> ../../log/pkgtools/removed_scripts
drwxr-xr-x 2 root root  69632 Nov 18 09:24 scripts
drwxr-xr-x 3 root root   4096 Nov  6 13:16 setup
Code:
/var/log# ls -ld packages pkgtools removed_packages removed_scripts removed_uninstall_scripts scripts setup
lrwxrwxrwx 1 root root   24 Nov  6 12:04 packages -> ../lib/pkgtools/packages
drwxr-xr-x 5 root root 4096 May 15  2020 pkgtools
lrwxrwxrwx 1 root root   25 Nov  6 12:04 removed_packages -> pkgtools/removed_packages
lrwxrwxrwx 1 root root   24 Nov  6 12:04 removed_scripts -> pkgtools/removed_scripts
lrwxrwxrwx 1 root root   34 Nov  6 12:04 removed_uninstall_scripts -> pkgtools/removed_uninstall_scripts
lrwxrwxrwx 1 root root   23 Nov  6 12:04 scripts -> ../lib/pkgtools/scripts
lrwxrwxrwx 1 root root   21 Nov  6 12:04 setup -> ../lib/pkgtools/setup
I uninstalled slackpkg and reinstalled (afer making sure that I downloaded it first) and /var/log/packages still shows up when running slackpkg clean-system. At least it doesn't appear to hurt my system at all when I leave it checked.
 
1 members found this post helpful.
Old 11-18-2020, 09:46 AM   #30
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,949

Rep: Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531
Wow, I am baffled by this. I am sure is has to be something simple.

Last edited by chrisretusn; 11-18-2020 at 09:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:05 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