Depends on the distro you're using.
I think the most common is RPM...and I happen to use Debian, so I'll just go over rpm and apt-get really quick....
Distros that use RPMs can use this set of steps to do it (There must be automatic tools for RPM based distros, but I'm not familiar with any, sorry.
):
This is the most general form it can take... Note: I don't admin the packages on any RPM based distros, and haven't for years...so it may be rusty, going off memory and man pages...this has potential to be incorrect, but I think it'll work...
Code:
rpm -e <package>
rpm -i <package>
But just to reinstall Mozilla only, this is probably not exactly what you want to do... So this is something you'll probably want to do instead, so rpm doesn't complain about any dependancies that may otherwise cause a problem here (since we know we're going to reinstall it right away). So, in your case, you'll probably want to use this instead:
Code:
rpm -e --nodeps <package>
rpm -i <package>
Debian (any apt-get types? Is Debian the only one?) can use this:
Code:
apt-get remove <package>
apt-get install <package>
Or there's some dpkg magic that can be worked, but apt-get is generally much easier.
Please, if anyone else reads this over and sees something I missed or was just flat out wrong on, correct me!
Also, be sure to read the man pages for whatever you may be using for additional options you may want to use! Good rule of thumb in any case when one doesn't know much about a command.