Riccardo Mottola <riccardo.mott...@libero.it> writes: > I would check if the .so.x file has a corresponding symlink, if it has, > it is latest version, else it is old.
That's not true. There is a symlink e.g. from .so.1 to .so.1.1. Maybe you mean "the libfoo.so symlink does not point to it". In general deleting these has some risk and unless you are really tight on disk space, little benefit.