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>.rpmto 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 -ibut it returned:rpm: no packages given for install
How to download an RPM package and install it in one line?
pipe;rpm;wget
RPM has native support to download a package from a URL. You can do:sudo rpm -i <URL>There is no need to download the RPM manually. If this support didn't exist, you could use bash's process substitution.sudo bash -c 'rpm -i <(wget -O - <URL>)'