Re: Problem with left over files from earlier releases

From: Mike Clarke <jmc-freebsd2_at_milibyte.co.uk>
Date: Thu, 20 Apr 2023 08:33:53 UTC
On Wednesday, 19 April 2023 12:41:32 BST Yuri wrote:

> Mike Clarke wrote:
> > On Wednesday, 19 April 2023 11:58:00 BST Yuri wrote:
> >> Mike Clarke wrote:

<snip>

> >> >  But this makes me wonder how many redundant
> >> > old files might be lying around in the base system and potentially
> >> > causing problems. Is there any easy way to track these down other than
> >> > doing a fresh install from scratch? Since I'm intending to upgrade to
> >> > 13.2 soon this could be a good time to see if there's more redundant
> >> > stuff to clean out.
> >> 
> >> If you are using source upgrades, check list-old* and delete-old*
> >> targets in /usr/src/Makefile.
> 
> If you have src installed, and it IS up to date with currently running
> release, you could try using those targets anyway.
> 
> OTOH, I don't know if freebsd-update is supposed to take care of
> obsolete files/directories.

Thanks. I ran make 'check list-old' and it came up with 150 items, some dating back as far 
as 2010! So I booted into a new BE and ran  delete-old and 
 delete-old-libs to get rid of them.

Everything seems to be working fine now. Some of the old files might have even been the 
cause of a few random crashes I've sometimes had with a couple of programs. But if 
problems arise over the next few daya or weeks I can revert to the earlier BE with all the 
files present.

-- 
Mike Clarke