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

How does Linux install the wget command

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will explain in detail how to install the wget command in Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Wget is a tool for downloading files in Linux. Wget is open source software developed under Linux by Hrvoje Niksic, which was later ported to various platforms, including Windows.

# method 1: install wget 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: install wget through rpm it is said that rpm is the general installation method of linux, Xiaobai said that he does not understand ah, but this does not affect my use. Follow these steps:

Download wget's rpm package: 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

This is the end of this article on "how to install wget commands for Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out 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

Development

Wechat

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

12
Report