Does anyone know of a bash script that will determine if RPM exists on a system?
Hello,
I am very new to bash scripting along with Linux platform and was wondering if anyone knew of a way to check for the existence of RPM on a system. Currrently I would like my script to check for the existence of RPM before performing some action. If any one could help me I would really appreciate it. Best Regards, -Jim |
Use it like this where firefox can be whatever rpm you are looking for.
rpm -qa | grep firefox |
Try the command urpmi -q it will check to see if the package is installed on your system.
|
Quote:
|
All times are GMT -5. The time now is 06:09 PM. |