I was wondering whether using wget
it was possible to download an RPM and then pipe it through sudo rpm -i
to install it, in a single line? I realize I could just run:
wget -c <URL>
sudo rpm -i <PACKAGE-NAME>.rpm
to install the package but I was wondering whether it might be possible to do this in a single line using the quiet and write to standard output options of wget. I have tried using:
wget -cqO- <URL> | sudo rpm -i
but it returned:
rpm: no packages given for install
sudo rpm -i <URL>
?wget -cqO- <URL> | xargs sudo rpm -i
or maybesudo rpm -i $(wget -cqO- <URL>)
? What error do they give?rpm: no packages given for install
.