check if packages are installed.