yum specify's incorrect $releasever when connecting to local repository
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 05:48 AM.
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.
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.
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 ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.