LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Firefox 1.5 to 2.0 upgrade problems (http://www.linuxquestions.org/questions/linux-desktop-74/firefox-1-5-to-2-0-upgrade-problems-619749/)

Ken Russell 02-08-2008 03:27 PM

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.

jailbait 02-08-2008 04:20 PM

Quote:

Originally Posted by Ken Russell (Post 3050761)
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

rg.viza 02-11-2008 01:32 PM

Quote:

Originally Posted by jailbait (Post 3050803)
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

jailbait 02-11-2008 03:28 PM

Quote:

Originally Posted by rg.viza (Post 3053674)
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

Ken Russell 02-12-2008 05:33 PM

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 !

Ken Russell 02-12-2008 06:04 PM

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


All times are GMT -5. The time now is 11:22 PM.