Create script which accepts name of package, and if this package installed in the system - shows its version. If not installed - corresponding message. Script should be able to work in deb and rpm-based systems.
This script accepts name of package, and if this package installed in the system - shows its version. If not installed - corresponding message. Script able to work in deb and rpm-based systems. This script run without argument.
./task9.sh
After starting script we need to enter name of package.