Bhagwad Jal Park
Bhagwad Jal Park

Reputation: 1123

Why not Use Yum for Adding Repos Instead of Importing Keys, then RPM etc?

Whenever I want to install a repo, the standard instructions are to import a public key with "rpm --import" , then rpm "-Uvh" for the actual rpm file. Like for the ELRepo here: http://elrepo.org/tiki/tiki-index.php

However, why can't I just use yum to install the rpm file? So basically instead of:

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm

I just type:

yum install http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm

And everything works fine! It's much nicer to use yum, since it's easy to keep track of what I've installed (or even better - dnf!), remove things etc. Surely that's what a package manager is for right? Why use the rpm command at all?

Upvotes: 0

Views: 295

Answers (1)

msuchy
msuchy

Reputation: 5427

There are many ways to do it. And, yes, you can install the package using yum. No problem. And if you did not imported gpg key previously, then yum will ask you.

Upvotes: 1

Related Questions