support for apt-get and yum based distros