Debian Firefox: script for automatic upgrades

Those of you who use they will know that this particular distribution comes pre-installed with the ESR. The following post is for those who have updated to the latest version of Firefox (57), replacing ESR.

If you do not know how to do it, there is a great tutorial on the page linuxconfig.org

The manual of Firefox has pros and cons. On the plus side we can mention that you will have the latest and fastest version of Firefox. The downside is that all upcoming updates will have to be installed manually, as Apt won't.Firefox

The above tutorial from linuxconfig also contains the commands for upgrading to a new version.

However, since executing commands with every update of Firefox may not be excited, we will create a script that will be the role of the update tool.

It won't be like Debian's package manager, but it can make sure that the and installing the latest version of Firefox will become a breeze.

To get started, you need to get root by typing in your terminal with the su command.

su

Enter the root password to proceed.

Then with the Nano text editor we will create the script in your usr / bin of your system.

nano / usr / bin / firefox

When the empty nano screen opens, add the following text with copy and paste.

#! / bin / bash wget -O FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US" tar xjfv FirefoxSetup.tar.bz2 -C / opt / firefox / --overwrite rm FirefoxSetup.tar.bz2

The 4 commands above tell the system that it is a script (#! / Bin / bash), download the latest version of Firefox with wget, open compressed files, and overwrite the files of the older version. Immediately after they delete the compressed file after it is no longer needed (rm).

Immediately use the following command to give them what they need in the script you created

chmod + x / usr / bin / firefox

You are ready when you see how a new version of Firefox is released, you can run the following commands and the upgrade will be done automatically.

su firefox-uiguru

Be careful, the script works only for manual updates of Firefox, as is the case with the linuxconfig.org tutorial mentioned above.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by giorgos

George still wonders what he's doing here ...

One Comment

Leave a Reply

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).