A script to easily install, update, and uninstall Firefox Developer Edition on Linux.
Download .sh file.
wget https://raw.githubusercontent.com/saihon/setup-firefox-dev-sh/main/setup-firefox-dev.shChange file mode.
chmod 755 setup-firefox-dev.shMove to a directory in your PATH (e.g., /usr/local/bin/).
sudo mv setup-firefox-dev.sh /usr/local/bin/setup-firefox-dev.sh <subcommand> [options]Show help message or this script version information.
setup-firefox-dev.sh help setup-firefox-dev.sh versionInstalls or reinstalls the latest Firefox Developer Edition.
sudo setup-firefox-dev.sh installOptions:
-l, --lang <LANG>: Specify the language for installation (e.g.,ja,de). The chosen language will be remembered for future updates.
Process:
- Downloads the latest
.tar.bz2archive to the/tmpdirectory. - Extracts the archive to
/opt/firefox-dev. - Creates a symbolic link at
/usr/local/bin/firefox-dev. - Creates a desktop entry file at
/usr/share/applications/Firefox-dev.desktop. - Saves the version and language information to
/opt/firefox-dev/.version.
Checks for a new version and updates if one is found.
sudo setup-firefox-dev.sh updateOptions:
-c, --check: Only check for a new version without performing an update. This option does not require sudo.-l, --lang <LANG>: Specify a language for the update. The new language will be saved and used for subsequent updates.
Process:
- Compares the currently installed version with the latest version available on the server.
- If a new version is available, it downloads and extracts it, overwriting the previous installation.
Removes all files and links created by the script. This does not remove your browser profiles.
sudo setup-firefox-dev.sh uninstallProcess:
- Deletes the installation directory:
/opt/firefox-dev. - Deletes the symbolic link:
/usr/local/bin/firefox-dev. - Deletes the desktop entry file:
/usr/share/applications/Firefox-dev.desktop.
Verifies the installation and displays the current status. This command does not require sudo.
setup-firefox-dev.sh statusProcess:
- Displays the currently installed version and language.
- Checks for the existence of the installation directory (/opt/firefox-dev).
- Validates the symbolic link (/usr/local/bin/firefox-dev).
- Checks for the existence of the desktop entry file (/usr/share/applications/Firefox-dev.desktop).
This project is licensed under the MIT License.