Newbie linux admin question here. Over the last 6 months or so, I've ended up upgrading most of the default install software on my server setup on Fedora. Last few weeks or so, I've come to realize that there are many instances of the same software on this filesystem, and some are still being used and some not.
For example, I've upgraded/re-installed MySQL at least 3 times, once from rpm, and twice from source tarball. I've just realized that there's mysql binaries in
/usr/local/mysql/bin. To make things worse, the
which command points to
/sbin, (thanks to the order
PATH is written in, probably), but the
init.d script uses
/usr/local/bin, and all the shared libraries and headers are coming from yet another installation. It's a mess.
It's the similar situation with the current installation of PHP and Python.
My question is this - How do I clean this up? Do I:
- Pick one of the installations, point the proper PATHs to it, and delete the rest. Recompile all the dependencies that were pointing to the (now-deleted) other installations, if they fail because their dependency paths were written in.
- Level everything and start from scratch.
Is there another solution? Thanks for your advice!