Removing Mozilla

Removing Mozilla

Post by Kirk Steph » Thu, 28 Apr 2005 09:25:13

I like to think I know a little about Linux, then I run into a simple
problem that has me cussin' spittin' and beating the desk.

I'm running RedHat 9 on a a Dell Inspiron 4000. In addition to
Konqueror, I have Mozilla -- both of them from long ago when I

I like to keep my hard drive tidy and neat. I decide to remove Mozilla
and install the latest Firefox.

Using the GUI, I run the Add/Remove Software Packages -- I find no
specific mention of Mozilla, but I remove a few of games and other
junk I don't need cluttering up the drive. I remove the entire
category of Graphical Internet -- but I STILL HAVE MOZILLA.

OK, I think of myself as a command line guy anyway, so I leave the GUI
going back to the shell (logged in as root of course) and do an rpm
-qa to find Mozilla; I have two - a Mozilla-NSS and a Mozilla-NSRL
(something like that). So, I do an rpm -e on both -- but I STILL HAVE

It no longer shows up when I do an rpm query, but I STILL HAVE

It's still my menu, still on the panel, still sitting there in

What do I have to do to get rid of it? Should I just delete the
mozilla directory? If that's the answer, why have the rpm crap?

Somebody please tell me the obvious...


Removing Mozilla

Post by Mr Gumb » Thu, 28 Apr 2005 10:58:04

mozilla-nss and mozilla-nspr are to sub components of mozilla suite,
the main mozilla is a separate component. My Fedora command says:
rpm -aq | grep moz


It's possible you installed mozilla manually at some point,
if you get mozilla from, it comes in several
formats, one is a net installer which is a small network
tool that asks you what parts of the mozilla suite you want
and then gets them from mozilla org. The other is
the full "mozilla-installer" which will have the
whole suite and then installs it from it's own bulky
file. The point is both of those means bypass the rpm system and
so it has no idea it's installed. But if at some
earlier time you installed a different mozilla via rpm then
the rpm -q might say something about that one.

When you used rpm -q and it told you what mozilla
you have, did the version number in the rpm name match
the version that you have in that directory?
If not then at some point you did a manual style
install. Yes, you can go as root user and remove
all under /usr/lib/mozilla
(/usr/bin/mozilla is a shell script, the install via rpm
of the new mozilla you want should replace that
for you). You would want to remove /usr/lib/mozilla
because mozilla rpms now seem to install to a
specifically named mozilla lib directory. Then lastly
you can remove the menu entry via the menu editor
(right mouse click on the start button -> menu editor
then find the mozilla entry and remove it) Of course
your Red Hat 9 menu editor is likely different, I'm
referring to a much newer kde in Fedora Core 3.

On my Fedora machine, I have mozilla 1.7.7 and
it's in /usr/lib/mozilla-1.7.7. Your bookmarks
and stuff under $HOME/.mozilla should be imported for
you, but if you like to play it safe, back up the



Removing Mozilla

Post by Ben O'Brie » Thu, 28 Apr 2005 15:27:58

Lots of applications use the mozilla libraries so be careful before
removing the NSS and NSRL components (I think gaim uses mozilla-nspr, or
used to anyway).

The /usr/lib/mozilla directory can contain plugins (like flash and java)
for firefox and thunderbird which, even though their names have changed,
are still very mozilla based. Some versions of the flash plugin even
install in /opt/netscape, how's that for ancient? So if you use these
plugins stop and think before removing them. I think I remember (from
when I used to use RedHat) that
/usr/lib/mozilla-{firefox,thunderbird}/plugins are links to
/usr/lib/mozilla/plugins, so if you delete the original, you'll hose
both others.

So, the m *** of this story is, even though things may look like cruft,
be wary of deleting them.