Recently one of my bash scripts failed because cmake and zip / unzip were not installed on a system.
What would be a convenient way to check for installed packages in $PATH env?
I would like to check $PATH directly for cmake and the like since my script is running on Debian, Ubuntu, Arch, and so on. Thus, I would prefer to not use a package manager, because I would have to implement it several times using dpkg, pacman, ... based on the distribution the script is currently executed on.