[SOLVED] slackpkg clean-system wants to remove /var/log/packages as a package
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$ 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)
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.
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.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.