The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: bash reinstall
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-19-2005
blowtorch's Avatar
blowtorch blowtorch is offline
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
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!
Reply With Quote