How to update wget to 1.16 on WSL?

6,187

You can get the last version here : https://ftp.gnu.org/gnu/wget/wget-latest.tar.gz

wget https://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar xf wget-latest.tar.gz
rm wget-latest.tar.gz
cd wget-*
./configure
#optional: make check
make
#optional: make installcheck
make install
Share:
6,187

Related videos on Youtube

ifconfig
Author by

ifconfig

Student at the University of California Santa Barbara (UCSB class of 2024) majoring in Computer Engineering, an aspiring aerospace engineer. DIY nut and absolutely fascinated by all things space. Preferences: Windows and Linux over Mac, Android over iOS, VSCode and vim over emacs, Spotify over Pandora, GitHub over GitLab, etc. Convince me otherwise. :P

Updated on September 18, 2022

Comments

  • ifconfig
    ifconfig almost 2 years

    I am currently trying to use Bazel on my WSL installation, but I am getting the error:

    wget: unrecognized option '--show-progress' Usage: wget [OPTION]... [URL]...

    Try `wget --help' for more options.

    I have searched around, and found that the --show-progress option was only added in wget=1.16, and I only have wget=1.15. I am not sure how I can update to 1.16 though.

    sudo apt install wget=1.16 fails saying that

    E: Version '1.16' for 'wget' was not found

    and apt-cache policy wget doesn't mention anything about anything past 1.15:

    wget:
      Installed: 1.15-1ubuntu1.14.04.3
      Candidate: 1.15-1ubuntu1.14.04.3
      Version table:
     *** 1.15-1ubuntu1.14.04.3 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
            100 /var/lib/dpkg/status
         1.15-1ubuntu1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
    

    Does Ubuntu have support for wget 1.16? How can I install it? Thanks!

    • muru
      muru over 6 years
      WSL Ubuntu is currently 16.04.And 16.04 has 1.17.1. Just upgrade to 16.04.
    • ifconfig
      ifconfig over 6 years
      @muru Thanks for responding! I just noticed that, and am trying that now.