Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Steps for linux to download and install the wget command

2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail the steps of downloading and installing wget commands on linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

We can easily download and install all kinds of software in Windows, we can also download and install it in Linux, we only need the wget command, but the newly installed virtual machine does not have this command, we need to install his package to use.

Install WGET commands under LINUX (SFTP implementation)

Method 1: through yum

Command behavior:

Yum install wget

Done. This is simple, but the linux I installed is the minimum version of centos, and there will be a problem of not being able to connect to the source Web site (roughly meaning) when running the above command.

Method 2: through rpm

It is said that rpm is the general installation method of linux. Xiaobai says he doesn't understand, but it doesn't affect my use. Follow these steps:

Download the rpm package for wget:

Http://mirrors.163.com/centos/7/os/x86_64/Packages/

Just search for wget-1.14-15.el7_4.1.x86_64.rpm on this site.

Run: rpm-ivh wget-1.14-15.el7_4.1.x86_64.rpm

BUT my linux is installed in a virtual machine under the windows system, which requires uploading the wget package from the windows system to the linux server. It's a big head.

First of all, I can tell you that this process is not realized with sftp. The local host directory of sftp seems to be just a linux directory system. Entering the windows directory will report an error. Google has a way to do this:

In the start menu, run cmd (or the shortcut key win+R) to enter dos mode, and type:

Pscp D:\ wget-1.14-15.el7_4.1.x86_64.rpm root@115.156.248.35 (internal IP, I don't know how to explain it): / home

Then run the command in ssh:

Rpm-ivh wget-1.14-15.el7_4.1.x86_64.rpm

OK, it's done.

About linux download and install wget command steps to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report