1. Download Firefox-4.0 for Linux
Https://www.mozilla.com/en-US/firefox/new/
Https://www.mozilla.org/en-US/firefox/all.html
2. Unzip the Firefox-4.0
Tar-xjvf Firefox-latest.tar.bz2
3. Change the extracted file name.
After decompression, the default file name isFirefox,
In ubuntu 10.10, Firefox is deployed in/Usr/lib/firefox-3.6.10
To differentiate versions, change the extracted file nameFirefox-4.0
Note: The extracted file name cannot be changed. You only needFirefoxFile Overwrite
Note that the following file names must be consistent
4. Remove the old firefox-3.6.10 and install the new firefox-4.0
Sudo Rm-RF/usr/lib/firefox-3.6.10
Move the new firefox-4.0 to the system directory (do not move, move is to keep the system directory uniform)
Enter the new Firefox decompression directory
Sudo MV firefox-4.0/usr/lib/
5. Delete the old Firefox link and create a new link.
Sudo Rm-RF/usr/bin/Firefox
Sudo ln-S/usr/lib/firefox-4.0/Firefox/usr/bin/Firefox
6. Modify the Firefox system environment directory: You can use the icons on the previous menu and panel.
Sudo gedit/etc/apparmor. d/usr. bin. Firefox
ReplaceFirefOx environment directory
UseFirefox-4. 0 replaceFirefox-3. 6.10
7. Create an icon file
Sudo Rm-r/usr/share/pixmaps/firefox.png
Sudo CP/usr/lib/firefox-4.0/icons/mozicon128.png/usr/share/pixmaps/firefox.png
Practical experience:
I downloaded a firefox8.0 version from the official website and found that it can be used after decompression. However, for ease of management, I have to re-plan it:
Step 1: Delete the original Firefox
Rpm-e Firefox
Step 2: Download and pressurize the compressed package and name the folder"Firefox8.0";
Step 3: Set the folder"Firefox8.0"Move to"/OPT"Folder;
Step 4: Create a command link (This is important)
Ln-S/opt/firefox8.0/Firefox/usr/bin/Firefox
Step 5: Create an icon file
CP/opt/firefox8.0/icons/mozicon128.png/usr/share/pixmaps/firefox.png
Step 6: restart the Linux system and complete the upgrade.