Execute a command on either Red Hat or Debian package manager.