SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I was stupid enough to accidently delete my /var/log/packages dir. Does anyone have an idea how to regenerate the contents of that directory ?? (I already tried using mc's undelete-option, but it couldn't find any files anymore )
I hope someone has a good idea, so I can use Swaret again
--edit: never mind: I'm too brain dead at the moment. Just:
If Swaret just checks the filenames, you could simply copy 'scripts' to 'packages'. That would probably be much better. Your package management will still be busted, but swaret might work. If you deleted both, you're probably going to have to suffer busted package management or reinstall.
The installation will be long but you ends with a clean /var/log/packages
The solution above is less good as it take packages infos from the MANIFEST file that not suit 100% your system, after run this sort of thing you will end with packages description for package not installed in your system.
This however does not seem an option for me, since I don't archive all the .tgz-files I downloaded with Swaret. I don't have a problem with making swaret I have every single package installed. I'll just remove the 'not installed' packages 'on the fly', when I see there's an update for a package I know I don't have
P.S. So, the question for me remains: "How can I strip the 'none-package'-lines from the manifest-file"
It's a hack, and I don't know if it'll work, but...
Do you still have the contents of /var/log/scripts? You *could* do an 'upgradepkg --reinstall' on the packages listed there. I noticed, though, that it's not an all-inclusive list (not all packages have install scripts). So it looks like it's really only half a solution to your problem.
You could go through /var/log/removed_packages and manually upgradepkg --reinstall any names appearing there that you haven't done from the previous step. This might pick up some more of them, assuming you've upgraded some packages in the past.
Or you could do a full slackware install, then remove the packages you don't want/need.
The last option is to figure out exactly what packages you have installed from the files in /bin, /usr/bin, /usr/X11R6/bin, etc and install those. 100% manual process, and still not guaranteed to be complete -- not something I would recommend.
As ugly as it is, I think the full slack install then removing what's not needed is the easiest way.