linux升级火狐,不折腾会死:CentOS7更新Firefox浏览器

卸载CentOS自带的Firefox

1) rpm -qa | grep firefox查询已安装的旧版firefox

2) rpm -e firefox-45.4.0-1.el7.centos.x86_64 删除旧版firefox

如果提示错误:error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied),是因为权限不够,加上sudo命令并输入密码

sudo rpm -e firefox-45.4.0-1.el7.centos.x86_64

安装Firefox

1)到官网下载Firefox,比如下载到以下目录:

/home/cai/Downloads/Firefox-latest-x86_64.tar.bz2

2) 解压:

[cai@beta-cat Downloads]$ tar -jxvf Firefox-latest-x86_64.tar.bz2

3) 复制到安装目录:

[cai@beta-cat Downloads]$ sudo mv firefox /usr/local/

4)创建桌面启动器:

[cai@beta-cat Downloads]$ cd /usr/share/applications

[cai@beta-cat Downloads]$ ls

google-chrome.desktop

gpk-application.desktop

gpk-dbus-service.desktop

gpk-log.desktop

复制一个*.desktop文件,由于我以安装了chrome,所以我这里复制google-chrome.desktop:

备注:如果需要安装Chrome请看我的另一篇文章:不折腾会死:CentOS安装Chrome

[cai@beta-cat Downloads]$ sudo cp google-chrome.desktop firefox.desktop

修改firefox.desktop,改成如下设置:

[Desktop Entry]

Version=1.0

Name=Firefox

GenericName=Web Browser

GenericName[zh_CN]=网页浏览器

Comment=Access the Internet

Comment[zh_CN]=访问互联网

Exec=/usr/local/firefox/firefox %U #firefox的执行程序位置

Terminal=false

Icon=/usr/local/firefox/browser/icons/mozicon128.png #firefox的图标位置

Type=Application

Categories=Network;WebBrowser;

MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;

Actions=NewWindow;NewPrivateWindow;

最后,你就可以在CentOS桌面Applications/Internet中找到Firefox的启动图标了。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值