Check base system for obsolete or orphaned files

Arkane

New Member


Messages: 1

After several freebsd-updates I ran today in an issue with /lib/libreadline conflicting with /usr/local/lib/libreadline. The former (/lib/libreadline) seems to be a left over from a previous FreeBSD version.
After removing the old one in /lib and running ldconfig the bash shell started to work again.
Is there some tooling which checks the base system and reports these kind of 'left overs'? I've noticed there a still some old binaries still in the base from previous releases.
I tried 'freebsd-update IDS' but it did not report those files.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,323
Messages: 38,841

Is there some tooling which checks the base system and reports these kind of 'left overs'?
If you have the source tree installed (/usr/src/) you can run make delete-old and make delete-old-libs. You may want to set BATCH_DELETE_OLD_FILES or it's going to ask if you want to remove each and every file (which can be a lot).

I've noticed there a still some old binaries still in the base from previous releases.
When you do a major version upgrade you need to run freebsd-update(8) three times. The first install run only updates the kernel, the second install installs the userland and that third time removes the old libraries and executables.
 

olli@

Daemon
Developer

Reaction score: 1,255
Messages: 1,140

You may want to set BATCH_DELETE_OLD_FILES or it's going to ask if you want to remove each and every file (which can be a lot).
Alternatively you may use yes(1), like in yes | make delete-old. Less typing. ;)
 
Top