1

Bash script - determine vendor and install system (apt-get, yum etc) [duplicate]

view story
linux-howto

http://unix.stackexchange.com – This question already has an answer here: How can I reliably get the operating system's name? 9 answers I'm writing a shell script for use on various linux platforms. Part of the script installs a couple of packages. How can I determine the linux vendor and default system install mechanism, for example Debian/Ubuntu has apt-get, Fedora yum. (HowTos)