LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-29-2012, 04:01 PM   #1
b0redom
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
Centos, local yum repo and multiple versions of rpm


Hi,
I'm trying to set up a really simple local repo. I want to have a basic repo with two versions of only one rpm, so I did:

mkdir /packages/x64
copy two rpms to /packages/x64

Code:
[root@repo x64]# createrepo --verbose /packages/x64
1/2 - jre-6u37-linux-amd64.rpm
2/2 - jre-7u9-linux-x64.rpm

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Added the repo to /etc/yum.repos.d/local.repo

But when I do:

Code:
[root@repo x64]# yum list jre
I get:

Code:
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Available Packages
jre.x86_64                                                         1.7.0_09-fcs                                                          local
ie it only shows the latest version. I know that they're both in the repo because I've run this:

Code:
[root@repo x64]# rpm -qp jre-6u37-linux-amd64.rpm
jre-1.6.0_37-fcs.x86_64
[root@repo x64]# rpm -qp jre-7u9-linux-x64.rpm 
jre-1.7.0_09-fcs.x86_64
and when I remove the latter version, and run createrepo again, the former shows up. Most puzzling, what am I missing?
 
Old 11-29-2012, 07:47 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Show content of /etc/yum.repos.d/local.repo
Incidentally, you'll probably want http://wiki.centos.org/PackageManagement/Yum/Priorities as well.
 
Old 11-30-2012, 02:04 AM   #3
b0redom
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Code:
[local]
name=local repo 
baseurl=file:///packages/x64
#baseurl=ftp://internalhost.com/yumrepo/centos/$releasever/$basearch
#baseurl=http://internalhost.com/localrepo/centos/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6-LocalRepo
protect=1
Regards...
 
  


Reply



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
[SOLVED] RHEL 6 local YUM repo help xion824 Linux - Server 13 11-28-2012 01:15 PM
is there a REPO for kernel Versions; want to update using Yum dschief Linux - Newbie 6 03-25-2009 07:22 PM
yum local repo dlee12 Linux - Newbie 1 03-01-2009 12:26 PM
yum local repo dlee12 Linux - Newbie 1 03-01-2009 12:26 PM
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 12:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:43 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
Open Source Consulting | Domain Registration