之前是用的包管理器装的,位置
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 ~/Downloadswget http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/33.1.1/linux-x86_64/en-US/firefox-33.1.1.tar.bz2tar -xjvf firefox-33.1.1.tar.bz2sudo rm -rf /opt/firefox* #这步可选sudo mv firefox /opt/firefox33.1sudo 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