Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to make a DVD with some useful packages (for example php-common). The only problem is that if I try to install on a computer that's not connected to internet, I can't validate the public key.

The scenario is like this:

  1. I download the RPMs, I copy them to DVD.
  2. I install CentOS 5.5 on my laptop (it has no internet connection).
  3. I try install one using yum (or rpm -i, or whatever).

I get the following error: public key for "package" is not installed.

How can I bypass that?

share|improve this question

2 Answers 2

up vote 29 down vote accepted

From yum -h:

--nogpgcheck          disable gpg signature checking
share|improve this answer
What if the network-less system is older (i.e. CentOS 5) and its yum does not have a nogpgcheck option? – Urhixidur Nov 24 at 21:45

If you want to disable the GPG validation for the whole Repo, add the following line to the Repo definition in /etc/yum.conf:


If you are installing local RPMs using yum, do as Ignacio says.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.