Daniel Pielmeier wrote:
Dale schrieb am 17.08.2008 05:35:
 > OK.  Did that.  No errors.  It is a HUGE list of files.  Here is a
SMALL
snippet:

snipping the snippet :-)


They all look about the same as those listed above. What would it look like if one was orphaned?
Dale

:-)  :-)


Detecting real orphan files is not a trivial task, it requires some
knowledge about the installed packages, packages which have been
installed before and which are now removed. Files which are essential to
the system and which are not part of any packages (/etc/make.conf,
/etc/passwd). There are also files which are generated by portage but
can not be tracked by portage.

The script already tries to exclude some false positive like *.pyc,
*.pyo, .keep files. The pyc and pyo files are bite compiled python
modules which are generated after the files are installed to the file
system and thus are not known by portage. .keep files are normally
generated by portage to prevent empty directories from being removed.

It also excludes the directories /usr/src (there are kernel and other
sources stored) and /lib/modules (location of the kernel modules) both
locations contain files not known by portage too. But there are many
other files not excluded by the script which are essential to the
system. So you should know what you do when deleting any of the files
you get from the script.

Regards,

Daniel




I agree that it would be a heck of a challenge to track what is supposed to be there, what was not placed there by portage but belongs there anyway, and what just got left there by mistake. /etc/portage/* is just a small example of that. Portage didn't put it there but I would not be happy if it got removed. Then add in that there are hundreds of different packages to keep up with and not all of them can be on one install. Even if this script said something belonged to nothing installed, I would still check to make sure it was safe to delete. I also keep backups of not only my whole system but also a separate backup of /etc, just in case I edit something badly.

Thanks

Dale

:-) :-)

Reply via email to