nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Red Hat Linux Cd iso's / repository suppy public key [ RPM-GPG-KEY ]

This is a discussion on Red Hat Linux Cd iso's / repository suppy public key [ RPM-GPG-KEY ] within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; The system I'm working on does not have network access. I've setup the 7 cd iso's for RHEL 5.3 as ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 27-01-2009, 05:02 AM
Junior Member
User
 
Join Date: Jan 2009
OS: RHEL 5
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
katsushiro is on a distinguished road
Default *solved* Red Hat Linux Cd iso's / repository suppy public key [ RPM-GPG-KEY ]

The system I'm working on does not have network access. I've setup the 7 cd iso's for RHEL 5.3 as repos for my 5.3 install by following the steps at the following:
Howto Setup yum repositories to update or install package from ISO CDROM Image

Red Hat Knowledgebase: How would I use yum to update or install packages from a ISO of Red Hat Enterprise Linux version 5?

"yum search random_app" returns the correct responces, and a "yum install random_app" resolves dependencies and attempts to install, until: "unable to verify random_app public key is not installed"

do I have to generate a gpg key? how do I host it for yum to import it? is there any workaround? I'd really appreciate assistance.

Last edited by katsushiro; 27-01-2009 at 06:22 PM. Reason: mark as resolved
Reply With Quote
  #2 (permalink)  
Old 27-01-2009, 06:49 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Usually, you need to run following under RHEL 4:
Code:
rpm --import /usr/share/rhn/RPM-GPG-KEY
Under RHEL 5 path is different /etc/pki/rpm-gpg/
Code:
cd /etc/pki/rpm-gpg/
ls -l
There are multiple keys, import required keys as per your setup. using rpm --import command. Running following should fix the problem:
Code:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Also, RPM-GPG-KEY should be on CD itself. Assuming ISO image is mounted in /mnt/disk1/, use the following command to import it into the keyring:
Code:
cd /mnt/disk1/
ls RPM-GPG-KEK*
 rpm --import /mnt/disk1/RPM-GPG-KEY
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 27-01-2009, 06:21 PM
Junior Member
User
 
Join Date: Jan 2009
OS: RHEL 5
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
katsushiro is on a distinguished road
Default *solved*

well, that should have worked, though the import of keys from both those locations failed. Luckily the guy next to me slapped some sense into me and reminded me to edit the file in /etc/yum.repos.d/ (we called it file.repo) to include the line,
"gpgcheck=0"
and amazingly it works, and installs, and all is right with the world
Reply With Quote
Reply

Tags
import gpg key , redhat release package signing key , redhat rpm gpg key , rhel package keys , rpm


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
repository access myfoot Web servers 1 13-03-2009 01:01 PM
yum repository ankur.chaudhary Linux software 0 02-10-2008 07:21 PM
How to configure vsftp for public IP satishap Web servers 2 29-08-2008 10:49 PM
Public Folders In Scalix zafar466 Mail Servers 0 08-02-2007 12:52 PM
ssh rsa/dsa/public/private keys asim.mcp Linux software 1 10-09-2006 06:01 PM


All times are GMT +5.5. The time now is 07:05 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38