You are not logged in.

#1 2015-06-10 10:23:58

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

lostfiles script from the AUR

I recently heard about the lostfiles app and decided to grab it from the AUR to see what my orphaned files situation was like as keeping a clean and tidy file system is something i strive for. Upon running it I found that it lists quite a few things that I cant imagine my system can do without, or at least not very well. It listed things like:

/etc/X11/xorg.conf.d/xorg.conf
/etc/sddm.conf

and various other items that seem quite crucial to my system. I was under the impression "lostfiles" would list things that are safe to remove from the system. Again I'm trying to tidy it up and make sure things that dont need to be on here, aren't. I understand sometimes things will throw false positives, but I'd say 50% or more of the list it spit at me were files crucial to system operation.

Anyways, just looking to get some input on this script. Am I using it wrong? Not reading into it correctly?

Offline

#2 2015-06-10 10:30:43

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,099

Re: lostfiles script from the AUR

lostfiles lists files which are not owned by any package, nothing more, nothing less. It doesn't tell you anything about the importance of those files. Some will be crucial, some will not, that is for you to decide.

Offline

#3 2015-06-10 10:32:31

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

Re: lostfiles script from the AUR

arojas wrote:

lostfiles lists files which are not owned by any package, nothing more, nothing less. It doesn't tell you anything about the importance of those files. Some will be crucial, some will not, that is for you to decide.

Ah very well. Thank you. I guess it cant quite be used as a means for file system clean up then. Still trying to find the most optimal ways to keep a clean file system.

Offline

#4 2015-06-10 11:08:16

progandy
Member
Registered: 2012-05-17
Posts: 5,200

Re: lostfiles script from the AUR

GunnDawg wrote:
arojas wrote:

lostfiles lists files which are not owned by any package, nothing more, nothing less. It doesn't tell you anything about the importance of those files. Some will be crucial, some will not, that is for you to decide.

Ah very well. Thank you. I guess it cant quite be used as a means for file system clean up then. Still trying to find the most optimal ways to keep a clean file system.

You can use the result of lostfiles in your own script. Go through it manually and assign it to a package in your own database. Then the next time you run your script it can filter the output of lostfiles against your list.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2015-06-10 11:13:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,535
Website

Re: lostfiles script from the AUR

Or better yet, just edit the script.  It is a trivially simple script - I'm surprised it's even in the AUR.  A vast majority of the script is just the exclusion list.  You can add to that exclusion list to make it better fit your system.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB