fedora/linux升级firefox/fedora13安装新版本firefox

fedora官方的firefox的rpm/yum安装包更新非常慢,远远滞后于firefox的升级步骤。拿目前(2010-08-29)的版本来看,firefox最新版本是3.6.8,但yum上,版本只更新到了3.6.3.

虽然firefox的最近几个子版本号更新并没太大的改动,使用上没有感觉到有什么不同之处,不过对于“新版本升级爱好者”来说,升级到最新版本心里会感觉顺畅一些。

完美的升级firefox,是一件很麻烦的事情。

从firefox官方下载升级包,解压缩到rpm安装位置/usr/lib/firefox-3.6,如果没有启用selinux,可以正常使用(解压缩到其它目录里也是一样可以正常运行,但这样会有两个版本的firefox,有点洁癖~~);但如果selinux运行,会提示错误:libxul.so无权限。因为对selinux并不熟悉,掏腾一下,没有搞定。

于是找rpm包,http://rpm.pbone.net/这里有rpm包,但没有最新的3.6.8的32位包,于是下载3.6.7的,下载安装,有依赖包libvpx,照例这这个网站下载顺利安装,接下来不有依赖包:xulrunner,下载安装,跟firefox两个包互相依赖,错误信息里提到到版本号还不对,比较可恶。加–force参数,两个包一起安装,还是不行。加上参数–nodeps –force得以安装,运行firefox,正常启动,查看版本号,是3.6.7的版本。完成。

突然想到用rpm -q firefox查看一下版本,发现两个版本的rpm包同时存在,

[root@fsc /]# rpm -q firefox
firefox-3.6.3-4.fc13.i686
firefox-3.6.7-1.fc13.i686

发现了,之前的安装发现这里应该用rpm升级进行的安装。于是需要,卸载老的版本,

[root@fsc /]# rpm -ev firefox-3.6.3-4.fc13.i686

xulrunnerb也是同时存在两个版本的,卸载时,有多个依赖包,太麻烦,不卸载了。 Linux博大精深,还要多多学习啊!

—————————————————-

下面是操作过程中的部分命令记录,作为备忘参考。

[root@fsc /]# rpm -ivh /home/feng/Downloads/libvpx-0.9.1-2.fc13.i686.rpm
Preparing…                ########################################### [100%]
1:libvpx                 ########################################### [100%]
[root@fsc /]# rpm -ivh /home/feng/Downloads/firefox-3.6.7-1.fc13.i686.rpm
error: Failed dependencies:
xulrunner >= 1.9.2.7-1 is needed by firefox-3.6.7-1.fc13.i686
[root@fsc /]# rpm -ivh /home/feng/Downloads/xulrunner-1.9.2.7-2.fc13.i686.rpm
error: Failed dependencies:
xulrunner >= 1.9.2.4 conflicts with firefox-3.6.3-4.fc13.i686
[root@fsc /]# rpm -ivhf /home/feng/Downloads/xulrunner-1.9.2.7-2.fc13.i686.rpm
error: Failed dependencies:
xulrunner >= 1.9.2.4 conflicts with firefox-3.6.3-4.fc13.i686
[root@fsc /]# rpm -ivh –force /home/feng/Downloads/xulrunner-1.9.2.7-2.fc13.i686.rpm
error: Failed dependencies:
xulrunner >= 1.9.2.4 conflicts with firefox-3.6.3-4.fc13.i686
[root@fsc /]# rpm -ivhf /home/feng/Downloads/xulrunner-1.9.2.7-2.fc13.i686.rpm /home/feng/Downloads/firefox-3.6.7-1.fc13.i686.rpm
error: Failed dependencies:
xulrunner >= 1.9.2.4 conflicts with firefox-3.6.3-4.fc13.i686
[root@fsc /]# rpm -ivh /home/feng/Downloads/firefox-3.6.7-1.fc13.i686.rpm error: Failed dependencies:
xulrunner >= 1.9.2.7-1 is needed by firefox-3.6.7-1.fc13.i686
[root@fsc /]# rpm –help|grep force
–force                          short hand for –replacepkgs –replacefiles
(–force on upgrades does this
[root@fsc /]# rpm -ivh –force /home/feng/Downloads/xulrunner-1.9.2.7-2.fc13.i686.rpm /home/feng/Downloads/firefox-3.6.7-1.fc13.i686.rpm
error: Failed dependencies:
xulrunner >= 1.9.2.4 conflicts with firefox-3.6.3-4.fc13.i686
[root@fsc /]# rpm -ivh  /home/feng/Downloads/xulrunner-1.9.2.7-2.fc13.i686.rpm /home/feng/Downloads/firefox-3.6.7-1.fc13.i686.rpm  –nodeps –force
Preparing…                ########################################### [100%]
1:xulrunner              ########################################### [ 50%]
2:firefox                ########################################### [100%]
[root@fsc /]# rpm -q firefox
firefox-3.6.3-4.fc13.i686
firefox-3.6.7-1.fc13.i686
[root@fsc /]# rpm -ev firefox-3.6.3-4.fc13.i686
[root@fsc /]# rpm -q firefox
firefox-3.6.7-1.fc13.i686
[root@fsc /]# rpm -ev xulrunner-1.9.2.3-1.fc13.i686
error: Failed dependencies:
gecko-libs = 1.9.2.3 is needed by (installed) gnome-python2-gtkmozembed-2.25.3-17.fc13.i686
gecko-libs = 1.9.2.3 is needed by (installed) Miro-3.0-1.fc13.i686
xulrunner = 1.9.2.3-1.fc13 is needed by (installed) xulrunner-devel-1.9.2.3-1.fc13.i686

发表评论?

0 条评论。

发表评论