[SOLVED] List all files on the system that aren't part of a package
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.
List all files on the system that aren't part of a package
This may be a tricky one, but here goes. I have to upgrade a server from Slackware 13.37 to Slackware 14.0. I weighed the pros and cons of upgrading vs. fresh install, and since I'm home with the flu and feeling mildly adventurous, I installed 13.37 in a virtual machine with a spare snapshot and decided to play around and see if I could manage the "live" upgrade of one major release to the next, something I've never done before (there's a first time for everything).
I read the available docs (UPGRADE.TXT, CHANGES_AND_HINTS.TXT as well as Eric Hameleers' excellent upgrade guide using slackpkg). I mainly followed the latter, experimented with some personal ideas and tweaks, and after shooting myself successfully in the foot a couple times (virtual machines come in handy to go back in time), everything works OK now.
There seems to be some useless cruft from the previous release, even after removing the corresponding packages using slackpkg clean-system, for example files like rc.hald and the likes (in fact all the stuff resulting from doinst.sh). Now I wonder: is there a way I could display all files on my system that do NOT belong to any installed Slackware package?
to have a little more complete list I think you should need to add to the files listed in /var/log/packages the ones:
- eventually generated by the scripts in /var/log/scripts (the various doinst.sh)
- generated by the install scripts
- created/modified by the init scripts
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
(just to add to the confusion :-)
If you want to list all files belonging to a Slackware package (be it installed or not) expand MANIFEST.bz2 found in /slackware, /slackware64, /source/, /testing, /patches, /extra, /pasture.
Still, you'll miss those in or coming from /isolinux, /kernels, /usb-and-pxe-installers
PS 3000th post.
Last edited by Didier Spaier; 09-21-2013 at 10:01 AM.
After careful consideration (30 seconds) I guess this is probably a case of "Keep It Simple Stupid". Manually erasing the stuff mentioned in CHANGES_AND_HINTS.TXT and leaving harmless cruft in place will probably be the best solution.