Solaris - How to see if Bash is installed
5,395
Solution 1
Maybe I'm oversimplifying this but have you tried typing "bash" at the command prompt?
Solution 2
To check if bash package is installed try this command (verified on Solaris 10):
pkginfo -l SUNWbash
It may be also installed from 3rd-party software repository, then, try:
pkginfo | grep -i bash
Solution 3
If bash is installed the follwing will state which version you have, otherwise thorw an error
/usr/bin/bash --version
Related videos on Youtube
Author by
user3329963
Updated on September 18, 2022Comments
-
user3329963 over 1 year
never touched Solaris before is there an easy command to see if Bash is installed?
Probably a silly question, thanks for your help
-
user3329963 over 9 yearsYes. Says not found, but does that mean it's not installed?
-
Darren Wall over 9 yearsIt could be that it's not installed or could be that you've not got the path set, try /usr/bin/bash .
-
user3329963 over 9 yearsDirectory is not there, guessing it not installed
-
Darren Wall over 9 yearsAnd one final thing to try: pkginfo|grep -i bash
-
alanc over 9 yearsOn Solaris 11 & later, instead run
pkg info shell/bash
. -
Laszlo Valko over 9 yearsOn Solaris 10 & before, you can use
grep
to look into/var/sadm/install/contents
, that file lists all the files installed in packages.grep bin/bash /var/sadm/install/contents