upgrading firefox (Solved, THX)

New to Debian (Or Linux in general)? Ask your questions here!

Re: upgrading firefox

Postby jppattison » 2018-02-12 00:53

@ pawRoot - Yeah, I read that. I didn't know if I should change that /opt (which I can do now, I think, [ by using mv?]) ..... now that I know I've got Firefox 58 ;>). OTOH, should I use that command they gave for updating my new Firefox, or will that work?

Update Firefox
To update your Firefox execute:

Code: Select all
$ wget -O FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US"
# tar xjf FirefoxSetup.tar.bz2 -C /opt/firefox/


also, if I mv the new Firefox to ~/usr as HOAS mentioned would the command be:
Code: Select all
# mv /usr/lib/firefox-esr/firefox-esr /opt/firefox-esr/firefox-esr_orig
mv /opt/firefox/firefox/firefox /usr/lib/firefox/firefox/firefox
:?:
since esr was moved out of there?

Another question - wouldn't it be a good idea to remove Firefox-ESR before I do any moving to avoid any conflicts or other issues? A similar question was asked in the comments on that same tutorial - that it would somehow cause the new Firefox NOT to be able to update properly. I know that comment is older and was migrating from Firefox 55 to Firefox 56, but I don't need any problems.

rbrband • 4 months ago wrote:Don't we have to uninstall Debian's deprecated version of Firefox first? Otherwise, the work would be wiped by a glacially slow update, one day. I ended up without even an icon after I did that. I had to create a launcher, etc.--I had to start with the /opt/Firefox55 Firefox version I had previously set up in order to get to this info (and the Libre page) again: Even when the version 56 extract is installed, rebooting proves necessary. Before rebooting, Firefox indicated version 55, still. I noted that proved true before.... Thanks!


And then I could
Code: Select all
apt-get remove firefox-esr_orig

if it was a good idea to remove Firefox esr.
TIA, jppattison

Just saw this in the Debian wiki - would this be a better option than moving the files or not;
Code: Select all
sudo ln -s /opt/firefox/firefox /usr/local/bin/
jppattison
 
Posts: 42
Joined: 2015-02-23 18:13

Re: upgrading firefox

Postby pawRoot » 2018-02-12 02:09

I believe you can just move the whole folder to home directory, but i am not 100% sure so wait for someone more experienced to confirm.

This is what i would try

Code: Select all
mkdir -p ~/bin/
sudo rsync -a /opt/firefox ~/bin/
sudo rm -rf /opt/firefox


and then just follow Debian wiki to create shortcut if you need one.

jppattison wrote:if it was a good idea to remove Firefox esr.


Depends, for example in Gnome if you remove Firefox ESR you will also delete all Gnome packages, so be careful.

jppattison wrote:Just saw this in the Debian wiki - would this be a better option than moving the files or not;
Code: Select all
sudo ln -s /opt/firefox/firefox /usr/local/bin/


I believe this would just create link, and the original would be still in /opt/ ?
Again, im not 100% sure.
User avatar
pawRoot
 
Posts: 568
Joined: 2016-12-28 18:26
Location: Poland

Re: upgrading firefox

Postby sunrat » 2018-02-12 05:23

All this script stuff is getting confusing. If you use a desktop environment, just download from Mozilla site and extract where you want it (~/bin sounds like a good place). Then enter the extracted directory and click on firefox.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2478
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: upgrading firefox

Postby Head_on_a_Stick » 2018-02-12 06:58

^ +1
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8191
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: upgrading firefox

Postby jppattison » 2018-02-12 15:09

sunrat wrote:All this script stuff is getting confusing. If you use a desktop environment, just download from Mozilla site and extract where you want it (~/bin sounds like a good place). Then enter the extracted directory and click on firefox.

I have d/l'ed it from Mozilla (as the wget command shows) and I am using FF-58 as I said in earlier post(s). I was just hoping that I could get an opinion from H-O-A-S as to whether I should move it to either /usr/bin or /usr/lib, and whether I should remove ff-esr or not, since H-O-A-S was the one asking if putting the FF file in /opt was a wise thing to do. I'm getting old - gimme a break!
I'm just trying to get this set up so that I don't have any troubles, and so that it will upgrade when I ask for it. Since I'm causing you too much confusion, I guess I'll just take my chances and try out pawRoot's suggestion, and then remove FF-esr completely. It's been several years since I have used Linux and the CLI, so that's why I ask so many questions - wiki's and manuals can only tell you so much - and - so little at the same time ..... people's experiences can tell you so much more. Thanks for your input, sorry if I have offended you.
jppattison
 
Posts: 42
Joined: 2015-02-23 18:13

Re: upgrading firefox

Postby None1975 » 2018-02-12 15:24

jppattison wrote:I'm just trying to get this set up so that I don't have any troubles, and so that it will upgrade when I ask for it. Since I'm causing you too much confusion, I guess I'll just take my chances and try out pawRoot's suggestion, and then remove FF-esr completely. It's been several years since I have used Linux and the CLI, so that's why I ask so many questions - wiki's and manuals can only tell you so much - and - so little at the same time ..... people's experiences can tell you so much more. Thanks for your input, sorry if I have offended you.

Why so complicate? No need to uninstall Firefox-esr. Just go to The new Firefox web site, download it to your home directory, place.tar.bz2 archive anywhere (i place it under folder "Documents/Browser"), extract it, go to extracted folder, locate executable file, named "firefox", execute it. No need go to command line. If you want update this program, open Firefox menu, go to "help/About Firefox". The program itself will find updates and install them.
OS: Debian 9.5 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 675
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: upgrading firefox

Postby pawRoot » 2018-02-12 15:25

But then everytime he want's to launch Firefox he has to navigate to Firefox folder which is kinda lame imo. :mrgreen:
User avatar
pawRoot
 
Posts: 568
Joined: 2016-12-28 18:26
Location: Poland

Re: upgrading firefox

Postby jppattison » 2018-02-12 15:45

pawRoot wrote:This is what i would try

Code: Select all
mkdir -p ~/bin/
sudo rsync -a /opt/firefox ~/bin/
sudo rm -rf /opt/firefox


and then just follow Debian wiki to create shortcut if you need one.


Thanks pawRoot. I have used the above to move firefox to the new ~/bin/ directory. ( I had to install rsync to do that, but now I've got that tool as well.) Also, I located all of the firefox-esr files and was able to remove all but a couple. Now I'll see if I screwed up anything in the process. :roll: :wink:
Many thanks for your help and advice! :mrgreen:
jppattison
jppattison
 
Posts: 42
Joined: 2015-02-23 18:13

Re: upgrading firefox

Postby pawRoot » 2018-02-12 15:53

^No problem, you can also create file /usr/share/applications/firefox.desktop, with this inside

Code: Select all
[Desktop Entry]
Name=Firefox
Comment=Web Browser
GenericName=Web Browser
X-GNOME-FullName=Firefox
Exec=~/bin/firefox/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=~/bin/firefox/browser/icons/mozicon128.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Firefox
StartupNotify=true
User avatar
pawRoot
 
Posts: 568
Joined: 2016-12-28 18:26
Location: Poland

Re: upgrading firefox

Postby Head_on_a_Stick » 2018-02-12 20:07

pawRoot wrote:This is what i would try

Code: Select all
mkdir -p ~/bin/
sudo rsync -a /opt/firefox ~/bin/
sudo rm -rf /opt/firefox

That won't work unless the FF binary is copied to ~/bin and it also needs ~/bin to be in PATH (which is not the case for a stock Debian system).
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8191
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: upgrading firefox

Postby pawRoot » 2018-02-12 20:11

^But the binary is inside firefox folder.
User avatar
pawRoot
 
Posts: 568
Joined: 2016-12-28 18:26
Location: Poland

Re: upgrading firefox

Postby Head_on_a_Stick » 2018-02-12 20:12

jppattison wrote:whether I should move it to either /usr/bin or /usr/lib, and whether I should remove ff-esr or not

Copy the Firefox binary (the executable file called firefox that is contained within the tarball supplied by Mozilla) to ~/bin

Check if ~/bin is scanned for executables by running
Code: Select all
echo $PATH

If ~/bin does not appear in the output of the above command then add this line to the end of the file at ~/.profile
Code: Select all
export PATH="${HOME}/bin:${PATH}"
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8191
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: upgrading firefox

Postby Head_on_a_Stick » 2018-02-12 20:14

pawRoot wrote:the binary is inside firefox folder.

Yes, exactly — ~/bin/firefox/ won't be in $PATH so the executable won't be found.
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8191
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: upgrading firefox

Postby pawRoot » 2018-02-12 20:18

But if he creates firefox.desktop then it won't really matter right ? or it will ?
I have the executable in ~/bin/firefox/ and it works fine.

also
Code: Select all
❯  ~ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games


is this how it should be ?
User avatar
pawRoot
 
Posts: 568
Joined: 2016-12-28 18:26
Location: Poland

Re: upgrading firefox

Postby Head_on_a_Stick » 2018-02-12 20:22

pawRoot wrote:But if he creates firefox.desktop then it won't really matter right ? or it will ?

That would depend on how the OP launches programs in their desktop :)

If a full desktop environment is in use and the XDG menu system is available then yes, your posted .desktop file will launch the program.

However, if the OP wants to start the program from the command line or a simple launcher (such as gmrun or dmenu) then my method will be needed.

Note that the .desktop file will have to be modified accordingly if my suggestion is used.
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8191
Joined: 2014-06-01 17:46
Location: /dev/chair

PreviousNext

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable