LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2009, 03:26 PM   #1
pvn_80
LQ Newbie
 
Registered: Jan 2008
Posts: 27

Rep: Reputation: 15
Setting up YUM repository


Hi,
I wanted to setup a YUM repository server in RHEL 5.0 and below are the steps which I performed:

1. Created a directory /var/ftp/pub and copied the Server folder from RHEL 5 installation CD to /var/ftp/pub.

2. Went to /etc/yum.repos.d and copied rhel-debuginfo.repo to Server.repo. Took backup of rhel-debuginfo.repo and deleted it from /etc/yum.repos.d.

3. edited the file Server.repo as follows:

[Server]
name=Red Hat Enterprise Linux
baseurl=file://var/ftp/pub/Server
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

4 Save it and quit

5. Ran yum clean all and yum update.

Now to check if the repositoy is workin I deleted ftp-0.17.33.fc6 using
rpm -e ftp-0.17.33.fc6. Now I went into the /var/ftp/pub/Server and ran the command yum install ftp-0.17.33.fc6 and below is what I get:


Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up install process.
Setting up repositories
No Repositories available to set up
Reading repository metadata in from local files
Parsing package install arguments
Examining ftp-0.17-33.fc6.i386.rpm: ftp-0.17-33.fc6.i386.rpm
marking ftp-0.17-33.fc6.i386.rpm to be installed
Setting up repositories
no repositories availabe to setup
reading repository metadata in from local files
Resolving dependencies
--->populating transaction set with selected packages.Please wait.
--->Package ftp.i386 0:0.17-33.fc6 set to updted
--->Running transaction check
Dependicies resolved

========================================================================Package Arch Version Repository Size
========================================================================

installing ftp i386 0.17-33.fc6 ftp-0.17-33.fc6.i386.rpm 84k

Transaction summary

========================================================================

Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 84 k

Is this ok [y/n]:

I enter 'y' and below is what i get:

Downloading packages:

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY , key ID 37017186

Public key for ftp-0.17-33.fc6.i386.rpm is not installed



Please help me fix this.

Thanks
 
Old 12-19-2009, 04:14 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Find the GnuPG key with ID 37017186 and install it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 11:55 PM
Yum Repository nitrohuffer2001 Linux - General 7 04-23-2013 04:23 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 03:19 PM
Setting Local DVDROM as yum Repository Mustafa^Qasim Linux - Newbie 1 05-03-2008 10:01 PM
Yum repository for 10.1 mijohnst SUSE / openSUSE 6 04-11-2006 09:42 AM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration