カテゴリー
アプリ

最新 Firefox へ切り替える方法

Check your F.F. whether or not latest release.

Extract files and deploy.

WKDIR=/tmp
# Finds latest version string and stores into the shell variable.
wget -qO - "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=ja" | tar jxf - -C $WKDIR
[ -e /opt/firefox/ ] && sudo rm -rf /opt/firefox
sudo mv $WKDIR/firefox /opt/
sudo chown -R root:root /opt/firefox
sudo find $WKDIR -name "firefox-*.tar.bz2" -exec rm {} \;

Should be done at once following them if you installed OS newly.

  • Remove package of the old version.
    sudo yum -y remove firefox
    
  • Allocate a new symbolic link for the new firefox.
    [ -L /usr/bin/firefox ] || sudo ln -s /opt/firefox/firefox /usr/bin/firefox
    
  • New icon is here:
    /opt/firefox/browser/chrome/icons/default/default128.png
    

Create a desktop menu item

  • Create a launcher configuration file.
    sudo vim /usr/share/applications/firefox.desktop
    
  • Put the following entries.
    [Desktop Entry]
    Encoding=UTF-8
    Name=Firefox
    Comment=Firefox
    Exec=/usr/bin/firefox
    Icon=/opt/firefox/browser/chrome/icons/default/default128.png
    Categories=Application;Network;WebBrowser
    Version=4.2
    Type=Application
    Terminal=0
    
  • You can refer to a article “Desktop Menu Specification”.

Trouble shooting

Gtk-Message: Failed to load module “pk-gtk-module”
sudo yum -y install PackageKit-gtk3-module
firefox は現在既定のブラウザに設定されていません。既定のブラウザに設定しますか
  • [メニュー]-[設定]-[お気に入りのアプリケーション]-[ウエブブラウザ]
  • /usr/bin/firefox を入力