ubuntu卸载和安装firefox33

之前是用的包管理器装的,位置
cyper@cyper-pc:~/Downloads$ ls -l `which firefox`
lrwxrwxrwx 1 root root 25 Jun  9 06:08 /usr/bin/firefox -> ../lib/firefox/firefox.sh
cyper@cyper-pc:~/Downloads$ 

卸载
cyper@cyper-pc:~/Downloads/java_soft$ sudo apt-get remove --purge firefox
[sudo] password for cyper: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  python-markdown retext-wpgen
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  firefox* firefox-globalmenu* firefox-gnome-support*

说明:apt-get remove --purge package表示删除包,包括删除配置文件等

下载并安装
cd ~/Downloads
wget http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/33.1.1/linux-x86_64/en-US/firefox-33.1.1.tar.bz2
tar -xjvf firefox-33.1.1.tar.bz2
sudo rm -rf /opt/firefox* #这步可选
sudo mv firefox /opt/firefox33.1
sudo ln -sf /opt/firefox33.1/firefox /usr/bin/firefox

tar: x表示解压,v表示verbose, j表示格式为bzip2, f指定归档文件
ln: s表示软链接,f表示如果目标文件存在,强制替换.

然后我们可以直接在命令行输入firefox启动浏览器了

查看新位置

cyper@cyper-pc:~/Downloads/java_soft$ ls -l `which firefox`
lrwxrwxrwx 1 root root 24 Nov 17 23:27 /usr/bin/firefox -> /opt/firefox33.1/firefox
cyper@cyper-pc:~/Downloads/java_soft$ 

快速启动
新建一个应用程序,命令是firefox %u
图标指向 /opt/firefox33.1/browser/icons/mozicon128.png

解释%u的意思:
Write the command "firefox %U" and press ok (you need "%U" so you can load URLs that are non-local files),
还是不懂%u什么意思,去掉%u也正常。who knows?


参考:http://www.itworld.com/article/2695595/enterprise-software/install-firefox-30-in-ubuntu-14-04.html

转载于:https://my.oschina.net/uniquejava/blog/345730

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值