LinuxQuestions.org
Help answer threads with 0 replies.
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 07-04-2012, 06:45 AM   #1
Fatboyslim
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
yum specify's incorrect $releasever when connecting to local repository


Hi All

I am N00b with Linux still so its probably something stupid im doing on myside but

I decided to create a local repository for my centOS 6.2 boxes (LOL ok 1 at present )
I managed to get the local repo done without issues , and can navigate without issues from any browser on my LAN but my issue is that when running YUM update from my test server using the following details

[base]
name=CentOS-$releasever - Base
baseurl=http://servername/centos/$releasever/os/$basearch/
gpgcheck=0
enabled=1

I receive a [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"

it would seems that yum is trying to use a $releasever of 6 where as my version is 6.2
according to the yum man pages

$releasever This will be replaced with the value of the version of the package listed in "distroverpkg". This defaults to the version of "redhat- release" package.

So when I query the release using
# rpm -qa '*release*'
I get this
centos-release-6-2.el6.centos.7.x86_64

so now my problem is why is YUM trying to specify a $releasever value of 6 instead of the 6.2 ???

if i renable the CentOS-Base.repo file it works perfectly , so maybe there's an issue with my local repo??

im using the below script and connecting to ftp.is.co.za rsync mirror

#!/bin/sh

rsync="rsync -avrt --bwlimit=256"

mirror=ftp.is.co.za::IS-Mirror/centos

verlist="6.2"
archlist="i386 x86_64"
baselist="os updates"
local=/var/www/html/centos/

for ver in $verlist
do
for arch in $archlist
do
for base in $baselist
do
remote=$mirror/$ver/$base/$arch/
$rsync $remote $local/$ver/$base/$arch/
done
done
done

only thing additional i did was to create a sym link from
/var/www/html/centos -> /data/centos for space reasons
and created a context reference for SELINUX

like i said im still learning and am most probably doing something stupid on my config

please help

Kind Regards

Fatboyslim

Last edited by Fatboyslim; 07-04-2012 at 06:48 AM.
 
Old 07-04-2012, 09:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
releasever IS 6. it's not meant to be 6.2 The latest RPM's for EL6 should be available under that location.

Note that 6.2 is just a baseline of updates for ease of installation more than anything else. a 6.0 system kept up to date will have the exact same versions of any package on a newly install 6.2 box.
 
Old 07-04-2012, 09:49 AM   #3
Fatboyslim
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
releasever IS 6. it's not meant to be 6.2 The latest RPM's for EL6 should be available under that location.

Note that 6.2 is just a baseline of updates for ease of installation more than anything else. a 6.0 system kept up to date will have the exact same versions of any package on a newly install 6.2 box.
Howzit Bud

thanks for the reply ,sorry im being a bit stupid here when you run yum does it first check http://ftp.is.co.za/linux/distributions/centos/6/
before moving on to the version that i am running ie : http://ftp.is.co.za/linux/distributions/centos/6.2/ ???

do i need to rsync 6 down to my local mirror also even if i am not running any centos 6 boxes ??

thanks man
 
Old 07-04-2012, 09:52 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
You *ARE* running CentOS 6. 6.2 IS 6. Look at the pages for two urls you posted in a browser... spot the difference? No... me neither.
 
Old 07-04-2012, 10:06 AM   #5
Fatboyslim
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
You *ARE* running CentOS 6. 6.2 IS 6. Look at the pages for two urls you posted in a browser... spot the difference? No... me neither.
Hi Chris
This seems to be a bit higher grade for me apologies for wasting your time ,
so should i rsync 6 and 6,2 or just rename 6.2 to 6 and create a symlink for 6.2 ?
 
Old 07-04-2012, 10:07 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
6 should be a symlink to 6.2. they should be exactly the same files.
 
Old 07-04-2012, 10:09 AM   #7
Fatboyslim
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
6 should be a symlink to 6.2. they should be exactly the same files.
Thanks Chris
 
  


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
Connecting to a yum repository Sharlene Linux - General 3 09-16-2011 10:46 AM
Help with YUM setup with local repository codenjanod Linux - Software 2 03-05-2010 04:09 AM
yum local repository rames2075 Linux - Enterprise 2 10-25-2008 09:16 AM
local yum repository tombolio Linux - Newbie 4 09-11-2008 08:28 PM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 11:43 AM


All times are GMT -5. The time now is 09:24 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