第一步:
rpm -ql firefox#centos本身自带一个firefox,但是版本是英文的。查找一下安装目录在etc中。
第二步:
cd /etc
yum remove firefox#删除系统自带的firefox
wget https://download-ssl.firefox.com.cn/releases/firefox/esr/91.2/zh-CN/Firefox-latest-x86_64.tar.bz2#下载中文版本
tar -jxvf Firefox-latest-x86_64.tar.bz2
第三步:创建快捷方式
vim /usr/share/applications/firefox.desktop
[Desktop Entry]
Name=firefox
GenericName=Web Browser
Comment=Browse the Web
Exec=/etc/firefox/firefox
Icon=/etc/firefox/browser/chrome/icons/default/default128.png
Terminal=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Categories=Network;WebBrowser;
Keywords=web;browser;internet;
Actions=new-window;new-private-window;