9

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

view full story
linux-howto

http://stackoverflow.com – I'm witing a shell script for use on various linux platforms. Part of the script installs a couple of pachages. How can I determine the linux vendor and default system install mechanism, for example Debian/Ubuntu has apt-get, Fedora yum. Thanks in advance (HowTos)