LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-07-2005, 10:07 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
Mozilla packages to be removed


Hi folks.

FedoraCore2
Mozilla 1.7.6

I found following Mozilla packages are running on my OS

# find / -name plugin | grep mozilla
Code:
/usr/lib/mozilla/plugins/java2/plugin
/usr/include/mozilla-1.7.2/plugin
/usr/include/mozilla-1.7.3/plugin
/usr/include/mozilla-1.0.2/plugin
/usr/include/mozilla-1.0.1/plugin
/usr/include/mozilla-1.6/plugin
/usr/include/mozilla-1.7.6/plugin
They were not empty

$ ls /usr/include/mozilla-1.0.2/
Code:
absyncsvc        imglib2            msglocal      ucvibm
accessibility    impComm4xMail      msgmdn        ucvja
addrbook         import             msgnews       ucvko
appcomps         inspector          msgsmime      ucvlatin
appshell         intl               necko         ucvmath
autoconfig       jar                necko2        ucvtw
browser          java               nkcache       ucvtw2
caps             jpeg               nspr          unicharutil
chardet          js                 nss           uriloader
chrome           jsconsole          oji           util
commandhandler   jsdebug            pipboot       view
composer         jsurl              pipnss        wallet
........
etc.

$ rpm -qa | grep mozilla
Code:
mozilla-nspr-1.7.6-1.2.5
mozilla-nspr-devel-1.7.6-1.2.5
mozilla-dom-inspector-1.7.6-1.2.5
mozilla-nss-1.7.6-1.2.5
mozilla-mail-1.7.6-1.2.5
mozilla-chat-1.7.6-1.2.5
mozilla-nss-devel-1.7.6-1.2.5
mozilla-devel-1.7.6-1.2.5
mozilla-1.7.6-1.2.5
mozilla-js-debugger-1.7.6-1.2.5
On starting Mozilla I found the version was "mozilla-1.7.6"

Please advise can I remove all /usr/include/mozilla-* retaining only /usr/include/mozilla-1.7.6/plugin and how to make it in one "go"

TIA

B.R.
satimis
 
Old 04-08-2005, 02:03 PM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
It depends on how they're installed, do an rpm -qa | grep moz to see what versions are installed, if you're using an rpm based distro. Otherwise you should just be able to do an rm -rf mozilla-1.0.2 etc. ( after making sure that those aren't just links to the newest mozilla, which they probably aren't )
 
Old 04-09-2005, 07:44 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi Technoslave,

Tks for your advice.

Quote:
It depends on how they're installed, do an rpm -qa | grep moz to see what versions are installed,
$ rpm -qa | grep moz
Code:
mozilla-nspr-1.7.6-1.2.5
mozilla-dom-inspector-1.7.6-1.2.5
mozilla-nss-1.7.6-1.2.5
mozilla-mail-1.7.6-1.2.5
mozilla-chat-1.7.6-1.2.5
mozplugger-1.5.2-1
mozilla-1.7.6-1.2.5
mozilla-js-debugger-1.7.6-1.2.5
Quote:
Otherwise you should just be able to do an rm -rf mozilla-1.0.2 etc. ( after making sure that those aren't just links to the newest mozilla, which they probably aren't )
Whether you meant removing them one by one.

$ ls /usr/include/mozilla-*
found having files inside the respective directories

$ ls /usr/include/mozilla-1.0.1/plugin/_
$ ls /usr/include/mozilla-1.0.2/plugin/_
$ ls /usr/include/mozilla-1.6/plugin/
$ ls /usr/include/mozilla-1.7.2/plugin/_
$ ls /usr/include/mozilla-1.7.3/plugin/_
$ ls /usr/include/mozilla-1.7.6/plugin/_
They are empty directoreies.

B.R.
satimis
 
Old 04-09-2005, 08:09 AM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi folks,

Further to my late postings I also found follows;

$ for f in /usr/include/mozilla*/plugin; do rpm -qf $f; done
file /usr/include/mozilla-1.0.1/plugin is not owned by any package
file /usr/include/mozilla-1.0.2/plugin is not owned by any package
file /usr/include/mozilla-1.6/plugin is not owned by any package
file /usr/include/mozilla-1.7.2/plugin is not owned by any package
file /usr/include/mozilla-1.7.3/plugin is not owned by any package
file /usr/include/mozilla-1.7.6/plugin is not owned by any package

B.R.
satimis
 
Old 04-09-2005, 08:16 AM   #5
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
If you are unsure whether you can delete them or not, I would suggest renaming them and then wait and see if anything complains.

If you want to be able to find them easily afterwards append "AA" or something similar so the renamed files will be grouped at the top of the file listings, or prepend a "~" or something if you want them to remain where they are in the listings, or... well, I guess you get the idea.
 
Old 04-10-2005, 06:23 AM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi ahh,

Tks for your advice.

Quote:
If you are unsure whether you can delete them or not, I would suggest renaming them and then wait and see if anything complains.
That is a good suggestion. What single command line I shall apply to rename all of them simultandously instead of moving their directories to /tmp/mozilla_tmp/

Quote:
If you want to be able to find them easily afterwards append "AA" or something similar so the renamed files will be grouped at the top of the file listings, or prepend a "~" or something if you want them to remain where they are in the listings, or... ...
Could you please provide more detail or an example will be appreciated.

TIA

B.R.
satimis
 
Old 04-10-2005, 08:48 PM   #7
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
Well, moving them would do the same job, but whether you move them or rename them it would be difficult to do them all simultaneously with the command line. This is because *you* have to decide which ones to move or rename, it is your call.

However, if you wanted to rename all the files in a directory by appending a "~" to the file name,
Code:
for i in $(ls); do mv $i $i~; done
would do it.

If you do decide to rename them, if you rename them by prepending "AA" to the file name so that "file1" becomes "AAfile1" and "file2" becomes "AAfile2" then when you list them these files will appear at (or near) the top of the listing.

If you rename them by appending "~" to the file so that "file1" becomes "file1~" and "file2" becomes "file2~" then they will remain in (or near) the same place when you list the files.

This will be the same for directories or files, of course.

It is simply a matter of preference. Moving or renaming will have the same effect, do whatever you feel most comfortable with, just make sure you can easily revert to the original file name or directory name if you have to.

And my apologies, I seem to have mixed up append and prepend in my previous post, I think I have them the right way round now

Last edited by ahh; 04-10-2005 at 08:50 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How are unused packages safely removed? oily_rags Suse/Novell 2 03-26-2005 07:18 PM
packages removed with urpmi --auto-select six_fingerz Mandriva 1 09-11-2004 08:16 AM
dselect, removed necessary packages accidently eggsally Debian 3 06-02-2004 04:46 PM
rpm removed packages log? jpokrzyk Linux - General 1 02-15-2004 12:24 AM
removed packages / add mail lappen Slackware 3 12-22-2003 01:12 AM


All times are GMT -5. The time now is 07:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration