If I do the following, if the URL is a redirect, it doesn't work
rpm -ivh
http://path/to/rpm
I have to use wget
http://path/to/rpm which resolves the redirect and downloads the file, then run rpm on that file.
More for my knowledge of bash than anything else, would there be a way to redirect the file downloaded from wget into the rpm (something like redirection or pipes or something), so that they could be combined into one command and you wouldn't explicitly save the file first.
Something like... rpm -ivh << wget
http://path/to/rpm
(I'm still a relative newbie so pardon my ignorance)
I have one more question, and that is whether there is a command in linux, such as wget, that would let me pass it a URL and output the redirected-to URL if the argument.
e.g. ('wget --someflag
http://orig/url' would output 'http://url-after-redirects-followed')