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
Share:
5,395

Related videos on Youtube

user3329963
Author by

user3329963

Updated on September 18, 2022

Comments

  • user3329963
    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
    user3329963 over 9 years
    Yes. Says not found, but does that mean it's not installed?
  • Darren Wall
    Darren Wall over 9 years
    It could be that it's not installed or could be that you've not got the path set, try /usr/bin/bash .
  • user3329963
    user3329963 over 9 years
    Directory is not there, guessing it not installed
  • Darren Wall
    Darren Wall over 9 years
    And one final thing to try: pkginfo|grep -i bash
  • alanc
    alanc over 9 years
    On Solaris 11 & later, instead run pkg info shell/bash.
  • Laszlo Valko
    Laszlo Valko over 9 years
    On 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