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.
I have totally corrupted my update files, and slackware no longer updates anything. I tried to "fix" the update problem. I probably really fouled up by deleting all files in the /var/log/packages, /var/log/remove_packages, and /var/log/removed_scripts. I then did a slackpkg update to reinstall all files, but this failed to completely repair the problem. My new /var/log/packages file is still missing many installed or upgraded files.
Any chance to fix this, or should I bite the bullet and reinstall?
Thanks. I tried clean-system, but it found nothing amiss.
Looks more and more like a complete reinstallation. I just hate to have to redo all the mods and 3rd party software again. It takes hours to complete.
This is probably the 4th time that I could not get slackpkg upgrade-all to install files. Been using slackware for over 15 years.
If you removed the content of /var/log/packages, /var/log/remove_packages, and /var/log/removed_scripts, then nothing is going to bring those back except installing all packages again. So a fresh install would be the sanest option.
I just hate to have to redo all the mods and 3rd party software again. It takes hours to complete.
I'm quite good at messing things up, so I make backups of my dot files to a .tar.gz file that I keep a copy of. I've also done things like mount an installer iso and run upgradepkg with reinstall and install-new from within the Slackware(64) directory to get back to a known state.
Assuming backups of all data might be worth a try before a fresh install?
If you want to get fancy, you can install onto btrfs, and then before you do anything wild'n'crazy that might cause you to wipe out all of /var/log/packages (or in -current/15.0beta, /var/lib/pkgtools), you create a snapshot of your filesystem. Then you do your wild'n'crazy thing, and if everything is ok after that, you can delete the snapshot if you like. If this sounds of interest to you, I suggest reading up on btrfs's wiki about subvolumes and snapshots.
I have totally corrupted my update files, and slackware no longer updates anything. I tried to "fix" the update problem. I probably really fouled up by deleting all files in the /var/log/packages, /var/log/remove_packages, and /var/log/removed_scripts. I then did a slackpkg update to reinstall all files, but this failed to completely repair the problem. My new /var/log/packages file is still missing many installed or upgraded files.
Any chance to fix this, or should I bite the bullet and reinstall?
I'm afraid that you are done. Do fresh install (ideally something better, not Slackware :-) ). Basically, those directories are sort of "package database" which is gone, and there is no solution.
Last edited by slackhater; 05-07-2021 at 12:12 PM.
The fix was simple - ask someone for copy of these directories. They are just text files containing description and install path. But the first is which Slackware version you were running. For custom builds it wouldn't work but for updates probably it could. You just little panicked.
The fix was simple - ask someone for copy of these directories. They are just text files containing description and install path. But the first is which Slackware version you were running. For custom builds it wouldn't work but for updates probably it could. You just little panicked.
I'm trying to imagine asking that someone to send those files.
How to do that if you dont't have records what was installed? Oh I forgot ... may be because of that genious thing like "full install"
To be fair, it is a bad implementation to make links in /var/log/packages, /var/log/scripts from their corresponding directories in /var/lib/pkgtools/, because those "logs" constitute pkgtools database. Logs you can truncate, and those files you can't touch. But who cares.
Last edited by slackhater; 05-07-2021 at 03:34 PM.
To be fair, it is a bad implementation to make links in /var/log/packages, /var/log/scripts from their corresponding directories in /var/lib/pkgtools/, because those "logs" constitute pkgtools database. Logs you can truncate, and those files you can't touch. But who cares.
These symlinks are only provided to allow a smooth migration from the old to the new location of the database. These kinds of things have allowed Slackware users to upgrade without a major issue since 16 July 1993.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.