I am trying to install elasticsearch 5.1 on Red Hat Enterprise Linux Server release 7.2
following the link :-https://www.elastic.co/guide/en/elasticsearch/reference/5.1/rpm.html
The first step tells to download ans install the public signing key
but I am getting below error:-
error: cannot open Packages index using db5 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
error: https://artifacts.elastic.co/GPG-KEY-elasticsearch: key 1 import failed.