Want to subscribe to topics you're interested in?
Become a Member

wget

Discussion in 'Add Ons' started by tdubs, May 23, 2017.

  1. tdubs

    tdubs Member

    84
    12
    8
    Apr 10, 2015
    Ratings:
    +15
    Local Time:
    2:13 AM
    1.7.12
    10.0.17
    Hello,

    I am trying to run just a simple wget command and anything I attempt to use it with, it returns /usr/local/bin/wget: No such file or directory and I'm not sure why. Obviously with the "No such file or directory" message, there is something missing. I went ahead and ran a simple yum -y remove wget and then yum -y install wget; still no luck. I also referred to https://community.centminmod.com/th...sion-of-wget-on-centos-for-123-09beta01.7889/ to see if that would do anything and it just fails to update wget.

    Any ideas?

    Thanks! :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,898
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,403
    Local Time:
    2:13 AM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod installs custom wget 0.19.1 version as Redhat and thus CentOS uses insecure wget version and only backported fix to CentOS 7 and not CentOS 6 https://community.centminmod.com/threads/wget-security-vulnerability-cve-2016-4971.7935/. So Centmin Mod users latest secure version for both CentOS 6 and 7 via initial install's trigger of addons/wget.sh during initial install time.

    Seems like your run of addons/wget.sh failed for some reason.

    What do you get if you manually try to run addons/wget.sh using below commands which will update centmin mod to latest first and then run addons/wget.sh

    Code (Text):
    cd /usr/local/src/centminmod
    git stash
    git pull
    cd addons
    ./wget.sh install
    

    then if fails to install wget at /usr/local/bin/wget, check the log saved during addons/wget/sh run at /root/centminlogs/wget_source_install_${DT}.log where ${DT} is datetime stamp. You can use command below to list files in ascending date order so that latest files are listed at bottom and grep filter for wget
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep 'wget_source_install'
    


    copy and paste contents of the log file to pastebin.com or gist.github.com to share

    example output from listing ascending order for log file wget_source_install_220517-183911.log
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep 'wget_source'
    -rw-r--r--   1 root root   45 May 22 18:39 wget_source_install_220517-183911.log
    

    cat command listing contents of log
    Code (Text):
    cat /root/centminlogs/wget_source_install_220517-183911.log
    

    copy and paste output from cat command to pastebin.com or gist.github.com to share