This script automatically installs and updates Firefox on Debian GNU/Linux systems. It's particularly useful for keeping Firefox up-to-date without manual intervention. The script is based on the original work by raulsaavedr (see Citations section).
- Automatic system architecture detection (32-bit or 64-bit)
- Works for both installation and updates
- Automatic detection of the latest Firefox version
- Logging of the update process
- Removal of old archive versions
To run the script manually, use:
sudo bash /etc/cron.weekly/check_firefoxTo install the script on your system, use the following commands:
sudo wget -O /etc/cron.weekly/check_firefox https://raw.githubusercontent.com/janfai/firefox_update/master/check_firefox
sudo chmod 755 /etc/cron.weekly/check_firefoxTo change the Firefox language to your preferred language, modify the language variable in the script.
The script performs the following steps:
- Checks for and installs sudo and curl if necessary
- Creates required directories
- Detects system architecture
- Determines the latest available Firefox version
- Compares with the currently installed version
- Downloads the latest Firefox version if needed
- Checks the integrity of the downloaded archive
- Extracts the archive and updates Firefox
- Removes old archive versions
The script logs the update process to /var/log/firefox_update.log.
The script is set up in /etc/cron.weekly/, ensuring it runs automatically once a week.
The script automatically checks the current version and compares it with the latest available version.
- Regularly check the log file to verify successful updates
- In case of update issues, you can run the script manually with the
-xswitch for detailed output
This script provides a robust solution for automatic Firefox management on Debian GNU/Linux systems, including installation, updates, and version checks.
[1] https://github.com/raulsaavedr/firefox_update/blob/master/check_firefox
[2] https://github.com/janfai/firefox_update/blob/master/check_firefox