async function getSupportedLinuxPackageFormat() {
  if (process.platform !== 'linux') return null;

  const hasDpkg = await isCommandAvailable('dpkg');
  const hasRpm = await isCommandAvailable('rpm');

  if (hasDpkg) {
    return 'deb';
  }

  if (hasRpm) {
    return 'rpm';
  }

  return null;
}
Checks the preferred package format (deb or rpm) for
current linux system. If the host system is not linux,
`null` is returned.