I am not very familiar with using yum to install packages. In a previous life I used apt.
Currently, I am looking at some instructions to run
# yum install http://example.com/package.rpm
which apparently will subscribe to a particular repository, from which further packages can be downloaded. Is this a safe thing to do?
For comparison, I know that apt packages have gpg signatures which means that downloads over http are not a problem. As described here. And when downloading packages outside the main repositories with apt, you can manually add a gpg key for apt to accept, to ensure that any non-standard packages have the same trusted source.
If I run the above command, will yum ask me to accept a gpg key before it starts installing things, or could it just install anything?
In case it is relevant, my /etc/yum.conf file contains gpgcheck=1 inside the [main] section.
yum installyou should use the package name, not the URL." - Agree, this is what I'd normally do with apt. But given the URL, what would you do? Perhaps this is obvious, but can you just manually add the repohttp://example.comand then doyum install package? – SauceCode Oct 21 '16 at 10:41apt-transport-https? – SauceCode Oct 21 '16 at 10:47aptrepositories now have validity dates in theirReleasefiles, which limits the length of time replay attacks remain valid. (If I remember correctly this was implemented as a result of the paper linked to in the answer.) But using TLS is a better solution! – Stephen Kitt Oct 21 '16 at 21:33Valid-Untilwas added to prevent replay attacks. however, it is unreasonable to ask repository users to download the metadata for a new repo and manually inspect it to ensure that header is present. Much easier to just tell people to always use TLS. – Joe Damato Oct 23 '16 at 23:48