LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-08-2008, 03:27 PM   #1
Ken Russell
LQ Newbie
 
Registered: Jan 2006
Location: Worcester, U.K.
Distribution: Ubuntu
Posts: 18

Rep: Reputation: 0
Firefox 1.5 to 2.0 upgrade problems


I'm using Mandriva 2008.

Attempting an upgrade to Firefox 2.0.

I install the RPM's, clicking on the dektop icons still give me 1.5.

Now the tricky bit.....

I installed 1.5 from source (yes I know...not a good idea).

So i'm guessing my RPM database doens't really know i have 1.5 installed.

How do i get rid of 1.5, and ensure the 2.0 stuff works ???

I have a horid feeling the whole thing is in a dreadful mess, with various executables scattered all over the place.

I'm a moderate newbie BTW, but not scared of the command line if necssary !!!!!!!!!!!!

Ken

P.S. happy to post concise solution (if I find one ) to hrlp others.
 
Old 02-08-2008, 04:20 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,474

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by Ken Russell View Post
I'm using Mandriva 2008.

Attempting an upgrade to Firefox 2.0.

I install the RPM's, clicking on the dektop icons still give me 1.5.

Now the tricky bit.....

I installed 1.5 from source (yes I know...not a good idea).

So i'm guessing my RPM database doens't really know i have 1.5 installed.

How do i get rid of 1.5, and ensure the 2.0 stuff works ???

I have a horid feeling the whole thing is in a dreadful mess, with various executables scattered all over the place.

I'm a moderate newbie BTW, but not scared of the command line if necssary !!!!!!!!!!!!

Ken

P.S. happy to post concise solution (if I find one ) to hrlp others.
I recommend that you use checkinstall to compile your FireFox 1.5 source into a rpm package. Then install the FireFox 1.5 rpm package using rpm and then turn right around and uninstall the Firefox 1.5 rpm package. The result will be that there will be no trace of FireFox 1.5 anywhere in your system including the rpm data base. I have used checkinstall like this several times.

http://www.asic-linux.com.mx/~izto/c...l/download.php

Then install FireFox 2.0 from the 2.0 rpm package.

--------------------
Steve Stites
 
Old 02-11-2008, 01:32 PM   #3
rg.viza
Member
 
Registered: Aug 2006
Posts: 73

Rep: Reputation: 15
Quote:
Originally Posted by jailbait View Post
I recommend that you use checkinstall to compile your FireFox 1.5 source into a rpm package. Then install the FireFox 1.5 rpm package using rpm and then turn right around and uninstall the Firefox 1.5 rpm package. The result will be that there will be no trace of FireFox 1.5 anywhere in your system including the rpm data base. I have used checkinstall like this several times.

http://www.asic-linux.com.mx/~izto/c...l/download.php

Then install FireFox 2.0 from the 2.0 rpm package.

--------------------
Steve Stites
Yea but if he compiled firefox from source, chances are that the install prefix is /usr/local unless he explicitly set --prefix= to something.

An RPM will install and uninstall to and from /usr by default once you make it.

I'd rerun make install on 1.5 and redirect the output into a file

make install > firefoxinstall.log

At the end of firefoxinstall.log you'll see all the file copies make did. It will copy a large block of freshly compiled stuff to a destination location usually with wildcards.

You can do an ls -1 [wildcard] with the same wildcard used in the make file in the source directory to get your file list and feed that to rm:
cd [to location in make output where files got copied]
ls -1 [srcdirectory]/[wildcard used in make] | xargs rm -f


and walk through this list. Start at the end of the list and work your way backwards through the log.

What this does is feed the list of files in srcdirectory to rm -f in the current directory, producing a list of filenames in the source directory you need to delete in the current one.

This will surgically remove everything the make script put there from that source directory, using the same directory of files and wildcard make did when it put them there.

Afterwards run ldconfig again. This sounds like a lot of work but it's not. There's usually only around 6-7 file copy commands you need to worry about.

/on soapbox

Compiling your network apps and servers from source is not a mistake and don't let anyone tell you it is 8)Sometimes it's the only way possible to get the feature set you want. When 0day comes for one of your services, and you can't use them until someone gets a package released, you will understand.

/off soapbox


-Viz
 
Old 02-11-2008, 03:28 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,474

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by rg.viza View Post
Yea but if he compiled firefox from source, chances are that the install prefix is /usr/local unless he explicitly set --prefix= to something.

An RPM will install and uninstall to and from /usr by default once you make it.

An RPM created by checkinstall will install and uninstall to the same files that the original source tarball installed and uninstalled to.

-----------------
Steve Stties
 
Old 02-12-2008, 05:33 PM   #5
Ken Russell
LQ Newbie
 
Registered: Jan 2006
Location: Worcester, U.K.
Distribution: Ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the help.

Ok, Thank you for your help.

Can't Firefox 1.5 and 2.0 co-exist ??

I haven't (yet) tried your suggestion rg.viza...mainly 'cos it looks a littel daunting, and i haven't been able to get checkinstall to create an RPM.

Whats been really cinfusing me is that the Mandriva RPM front end hasn't been telling me that the install of Firefox 2.0 hasn't been working.

So I have downloaded the RPM and installed from the command line and get the following :-

"root@localhost ken]# urpmi mozilla-firefox-2.0.0.11-1.1mdv2008.0.i586.rpm
unable to retrieve pathname for removable medium "Mandriva Linux - 2008.0 (Free) - Installer"
unable to retrieve pathname for removable medium "Mandriva Linux - 2008.0 (Free) - Installer (contrib)"

installing mozilla-firefox-2.0.0.11-1.1mdv2008.0.i586.rpm
Preparing... #############################################
1/1: mozilla-firefox #############################################
error: unpacking of archive failed on file /usr/bin/firefox: cpio: rename failed - Is a directory"

I know the "unable to retrieve" lines are not the problem as I always get them.

I am considering just deleting the /usr/bin/firefox directory completely..but am concerned about becoming browserless. Well not quite, but i don't really like Konqueror !
 
Old 02-12-2008, 06:04 PM   #6
Ken Russell
LQ Newbie
 
Registered: Jan 2006
Location: Worcester, U.K.
Distribution: Ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
Fixed

I renamed the /usr/lib/firefox directory and the RPM installed just fine !!!!
 
  


Reply

Tags
firefox, mandriva2008


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox dynamic content problems, and how to uninstall Firefox in Ubuntu rose_bud4201 Linux - Software 1 11-05-2007 10:38 PM
Upgrade to Firefox 2.0.0.4 phil66 Linux - Distributions 1 07-10-2007 11:12 AM
Upgrade Firefox Slipstream2006 Linux - Software 10 02-04-2007 03:38 PM
How to upgrade from Firefox 1.0.7 to Firefox 1.5.0.4 on FC3? trien27 Linux - Newbie 2 06-11-2006 07:26 AM
firefox does not stream video after firefox automatic upgrade? kazuya1977 VectorLinux 1 02-12-2006 01:48 PM


All times are GMT -5. The time now is 06:29 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