check if installed and version package before install