So this is sort of an answer, but probably not what you want to hear.
Don't do it. It may seem appealing at first to have a server "golden image" that "has it all". You don't want to go down that road. Here are a few reasons why:
- Each library you install provides another possible avenue for security breaches. Each time you clone this server, you'll need to update the image with all the recent security patches. If you have a bazillion libraries on the server, this process will take longer and be much more involved than it needs to be (think inter-library dependency resolution).
- It's nearly impossible to forsee what libraries you'll need for "Project X" you'll be starting in a couple years.
- There's a reason your distro has a decent package manager. Use it! If you need libfoo at some point in the future, you're a single command and about 15 seconds away from having it installed.
Are those three enough to convince you to not do this? If not, I can probably come up with several more. Honestly, I can see and understand your reasoning for wanting to do this. In practice, though, it's a bad idea.