Is there a single command to download binary files from an HTTP server to linux/solaris and install the binary subsequently? [closed]

StackOverflow https://stackoverflow.com/questions/20866095

문제

I want to automate a process of downloading a binary file from a server (HTTP) and then install it on either Solaris or Linux servers.

I use wget command followed by executing the binary file as root user.

Can we combine these two steps?

도움이 되었습니까?

해결책

put both commands into a single script that gets executed by root

다른 팁

You can do

wget url | command-to-install

However, if this is a tar folder and you know how to install, you can write a shell script to do it. e.g

wget url

tar xvzf archive 
./configure
make
make install

and run it as root e.g sudo ./installscript.sh

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top