Solved: Public key for rpm is not installed

Today we will see one of the general error message and its quick solution, to overcome this.

I. Error Message
When installing one rpm package, we are getting below error message.

[root@ngelinux grub]# yum install ipmitool
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, kabi, presto, refresh-packagekit, security,
              : tmprepo, verify, versionlock
Loading support for CentOS kernel ABI
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package ipmitool.x86_64 0:1.8.15-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
 Package                 Arch                  Version                       Repository                  Size
==============================================================================================================
Installing:
 ipmitool                x86_64                1.8.15-2.el6                  redhat-base                465 k

Transaction Summary
==============================================================================================================
Install       1 Package(s)

Total download size: 465 k
Installed size: 1.3 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 465 k
ipmitool-1.8.15-2.el6.x86_64.rpm                                                       | 465 kB     00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY


Public key for ipmitool-1.8.15-2.el6.x86_64.rpm is not installed

II. Solution
We can mention the option “–nogpgcheck” to skip the gpg check while installing the rpm.

[root@ngelinux grub]# yum --nogpgcheck install ipmitool
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, kabi, presto, refresh-packagekit, security,
              : tmprepo, verify, versionlock
Loading support for CentOS kernel ABI
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package ipmitool.x86_64 0:1.8.15-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
 Package                 Arch                  Version                       Repository                  Size
==============================================================================================================
Installing:
 ipmitool                x86_64                1.8.15-2.el6                  redhat-base                465 k

Transaction Summary
==============================================================================================================
Install       1 Package(s)

Total size: 465 k
Installed size: 1.3 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ipmitool-1.8.15-2.el6.x86_64                                                               1/1
  Verifying  : ipmitool-1.8.15-2.el6.x86_64                                                               1/1

Installed:
  ipmitool.x86_64 0:1.8.15-2.el6

Complete!

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments