How to handle nokey error in yum security transfer software package, yumnokey

Source: Internet
Author: User
Tags gpg

How to handle nokey error in yum security transfer software package, yumnokey
Problem description

Solution to error code: warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e856289

When we run the yum install + package name command, we may encounter an error, which will show that when you did not import the public key, the code shown in is displayed.

Problem Analysis

Before answering this question, we need to know some concepts, such as public key and private key? What is the connection and how to solve the problem.

Solution

Configure the default gppkey path in the yum source repository. We usually configure the yum source in/etc/yum. repos. d/configure in this directory. During configuration, first clear some of the original files, use rm-rf * to restore to the initial state, and then perform the following configuration in the file. Specify the Public Key address in the Yum source repository.

[Centos] name = bigebaseurl = file: // var/ftp/pub/6 gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Use rpm to import public keys

We already know that the Public Key address is in the/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6, then we can tap this command in the command line, to help us import Public Key rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

The above two methods can easily solve the problems we encountered in the production environment <

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.