Detects the target host package manager.
@type t() :: :apt | :dnf | :pacman | :apk
@spec detect(keyword()) :: {:ok, t()} | {:error, term()}
@spec resolve(keyword()) :: {:ok, t()} | {:error, term()}