Friday, May 3, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1284  / 1 Year ago, fri, december 16, 2022, 1:09:05

So I'm making my own document of codes to run after a fresh install of Ubuntu 13.10 and I want to try and keep everything in the command line (as opposed to having to open a browser to download files).



So I've got



wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb


for downloading google chrome and wanted to make something similar for Opera, so I have this link to download the opera browser .deb install file



www.opera.com/download/get/?id=35889&location=360&nothanks=yes&sub=marine



and have tried a variety of different things with wget but I can't seem to get it to download the .deb file. I would really like to do this from the command line instead of opening a browser to download the file.



Thanks.


More From » command-line

 Answers
5

Using



wget -Oopera.deb 'www.opera.com/download/get/?id=35889&location=360&nothanks=yes&sub=marine'


works for me. The -Oopera.deb option is requried otherwise the filename will be index.html?id=35889&location=360&nothanks=yes&sub=marine.
It downloads it into a file called opera.deb


[#27555] Friday, December 16, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
attagjump

Total Points: 272
Total Questions: 127
Total Answers: 124

Location: Taiwan
Member since Fri, Sep 17, 2021
3 Years ago
;