I removed /var/log and can't upgrade
Hi guys.
For a mistake, I removed /var/log folder , using this command: Code:
rm -fr /var/log/ Code:
bash-4.3# slackpkg upgrade-all Thanks in advance. |
If your Slackware happens to be a full, clean, and up-to-date install, you could recreate the contents of that directory from another full, clean, and up-to-date install. Otherwise, my recommendation is to back up all your files and reinstall.
|
Might be a good time to make some backups if you don't already have them.
I'd probably just installpkg all the packages again which will fix up your missing package data in /var/log/. If you are running 14.2, probably best to do this using the originally released packages, and then let slackpkg update it for you. Good luck! |
If a lame /var/log is acceptable to you, then for Slackware 14.2 you could run as root
Code:
mkdir /var/log |
A while back having backed up /var/log/removed_packages I then deleted /var/log/packages. From my experience if this a new ish clean install then just reinstall all packages and you should be good. If not then I would back up and start again.
The problems you will have if not are not huge but as time passes and you forget about the fudge you can spend a good while working out why you cant upgrade a package you have been using because slackpackage is telling you it is not installed. Occasionally you will have the odd problem with deps as you reinstall them forgetting that slackpackage has a blind spot (some years in the past now) and old files have not been cleaned out. Having been through this I would probably opt to reinstall as in the long run it will waste less time and cause less headaches. |
rm -fr the nuclear option. Yeah a new reinstall and regular back ups always a good idea.
|
Quote:
But also have a backup of /etc. That's where the overall system configuration is, especially users, groups, and their associated privileges. |
All times are GMT -5. The time now is 08:36 PM. |