Install wget package on OpenSuse server

Install wget package on OpenSuse server

 

bash: wget: command not found

Do the below steps to fix the above error

1. Log into your OpenSuse server as root
2. Run the command ‘zypper install wget’
3. Enter ‘y’ and press enter to proceed with installation.

To install wget, you must log into your OpenSuse server as ‘root’ user. The command ‘whoami’ will show whether you’re logged in as ‘root’ user. You can connect to the server via SSH using SSH clients like putty.

Run the command ‘zypper install wget’ to install wget package on OpenSuse server.

 

# zypper install wget
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 4 NEW packages are going to be installed:
libcares2 libexpat1 libmetalink3 wget

4 new packages to install.
Overall download size: 766.1 KiB. Already cached: 44.0 KiB. After the operation, additional 3.1 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
In cache libcares2-1.14.0-lp151.2.3.x86_64.rpm (1/4), 44.0 KiB ( 71.3 KiB unpacked)
Retrieving package libexpat1-2.2.5-lp151.3.6.1.x86_64 (2/4), 75.0 KiB (198.3 KiB unpacked)
Retrieving: libexpat1-2.2.5-lp151.3.6.1.x86_64.rpm ........................................................................[done (65.5 KiB/s)]
Retrieving package libmetalink3-0.1.3-lp151.2.3.x86_64 (3/4), 27.6 KiB ( 68.1 KiB unpacked)
Retrieving: libmetalink3-0.1.3-lp151.2.3.x86_64.rpm .......................................................................[done (17.2 KiB/s)]
Retrieving package wget-1.19.5-lp151.4.1.x86_64 (4/4), 663.5 KiB ( 2.7 MiB unpacked)
Retrieving: wget-1.19.5-lp151.4.1.x86_64.rpm .............................................................................[done (170.1 KiB/s)]

Checking for file conflicts: ...........................................................................................................[done]
(1/4) Installing: libcares2-1.14.0-lp151.2.3.x86_64 ....................................................................................[done]
(2/4) Installing: libexpat1-2.2.5-lp151.3.6.1.x86_64 ...................................................................................[done]
(3/4) Installing: libmetalink3-0.1.3-lp151.2.3.x86_64 ..................................................................................[done]
(4/4) Installing: wget-1.19.5-lp151.4.1.x86_64 .........................................................................................[done]

 

Run the command wget –version to check the version of wget installed on your server.

 
 

How to Install wget rpm on OpenSuse Server

 

1. Log into OpenSuse server as ‘root’ user

2. Go to /usr/local/src directory

3. Check OpenSuse version installed on your server

4. Download wget rpm file from rpmfind.net website

Command :

wget rpmfind.net/linux/opensuse/distribution/leap/15.2/repo/oss/x86_64/wget-1.19.5-lp152.5.7.x86_64.rpm

5. Install the downloaded wget rpm file

rpm -ivh wget-1.19.5-lp152.5.7.x86_64.rpm