My question applies to Debian/Ubuntu:
Prior to updating/upgrading my Linux environment I want to implement best-practice procedures by taking a snapshot of my components' versions through a simple script that records into a text file version numbers for OS, mySQL, PHP and so on.
If there is no better way I'm happy to grep files such as
Am I missing something?
I know how to check version number via phpMyAdmin's web interface but that is not helpful for what I need.