The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: bash reinstall
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-19-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
What OS are you using? Bash is a package that is installed seperately; its not built into the OS. You can find out the details about the name of the package as follows:
on Sun: pkginfo | grep -i bash
remove it using: pkgrm <package name from prev command>
install it again: pkgadd (check the man page - quite a few options)

on HP-UX: swlist | grep -i bash
remove it using: swremove (check the man page for interactive details)
install it again: swinstall (check the man page- again can be interactive)

on Linux (I have only ever used rpms): rpm -qa | grep -i bash
remove it using: rpm -e <package name>
install it using: rpm -i <package name>

Cheers!