On 6/5/19 10:56 PM, Dale wrote:
It's a plain text file and I've edited it in the past with no problems.

ACK

I /thought/ that was the case. But I wanted to double check that there wasn't something else filed away that needed to match before I edited the file.

I've done that cleanup before and it can take some time to accomplish depending on how bad it is. I went through this when I first started using Gentoo and didn't know any better. I'd do small chunks and keep a versioned back up file just in case.

*nod*

I've also used the script once. It does fairly well. It may miss a couple here and there and may have a few false positives as well.

It seems as if the regenworld script adds things that it finds from /var/log/emerge.log that aren't themselves dependencies of something else. Thus it the world file is cleaner than if all installed packages were in the world file.

However, there are still some things that aren't dependencies of other things that are listed that are no longer needed.

The world file is 279 lines long. I'm just going to go through the file by hand and identify every package listed and make a judgment call if I know if it needs to be on the system or not. If it does, then I'll leave it. If it doesn't then I'll remove it from the world file and let emerge decide if it needs to stay or not. There's a massive --depclean in this systems future.

Still it can do some heavy lifting for you. I'd copy the world file to a safe place and try the script. I'd try it once with the old world file in place and once without a world file at all. Then see which one works best. If that fails, do it manually.

ACK

Good luck.  I hope one or the other works.

Thank you.



--
Grant. . . .
unix || die





--
Grant. . . .
unix || die

Reply via email to