I want to automate some installation process. For that, I need to know whether it is a DEB or RPM distribution, Im able to find some scripts for find the OS distribution.
I need to write a script to check the OS distribution and if it is CentOS, redhat, Amazon linux then print YUM. If ubuntu, Debian then print DEB.