skip to Main Content

I’m having a problem downloading a xampp file using wget and choosing to change the filename, but it doesn’t work, can anyone help me?

this is command:
enter image description here

I tried a few similar articles but it didn’t work

2

Answers


  1. Why not just use wget to download and then use mv to rename it?

    wget http://www.example.com/filename
    mv filename installer
    

    BTW, in your case, the key issue is that you use the wrong download url. You should use the download url that appeared here:
    click to see

    So, it should be as follows in your case:

    wget  https://onboardcloud.dl.sourceforge.net/project/xampp/XAMPP%20Linux/8.2.12/xampp-linux-x64-8.2.12-0-installer.run
    mv xampp-linux-x64-8.2.12-0-installer.run installer
    
    Login or Signup to reply.
  2. According to wget man page you instructed wget to

    -o logfile
    Log all messages to logfile. The messages are normally reported to standard error.

    whilst you actually want to

    -O file
    The documents will not be written to the appropriate files, but all will be concatenated together and written to file.

    i.e. you need to alter -o (dash followed by lowercase o) to -O (dash followed by uppercase O).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search