LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2009, 10:13 AM   #1
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Rep: Reputation: 41
variable question ($releasever)


Hey all
dumb/quick question:

how can I display what $releasever is?

Thanks...
 
Old 09-02-2009, 10:16 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Code:
lsb_release -sr
 
Old 09-02-2009, 10:21 AM   #3
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
OK I did that and got 5 for the responce (as expected)
however I get the following

#sudo yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
http://<IPADDRESS>/centos/5Server/os/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error nonnumeric port: '15871?'>
Trying other mirror.

Why is it putting 5Server/ rather than just 5
Is this a flaw or by design?
 
Old 09-02-2009, 10:30 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
yum determines the $releasever from the file specified as distroverpkg= in /etc/yum.conf. For example if you have:
Code:
distroverpkg=redhat-release
in /etc/yum.conf, then yum looks at the content of /etc/redhat-release. First check the content of that file to see if it has accidentally modified. Second, I'd check also the content of the relevant file in /etc/yum.repos.d/, that one containing the definition of the update repository.
 
Old 09-02-2009, 10:38 AM   #5
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
Great Thanks!
 
Old 09-02-2009, 10:40 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by watcher69b View Post
Great Thanks!
You're welcome! Just out of curiosity: what was the flaw?
 
Old 09-03-2009, 05:15 AM   #7
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
No ideal I assume that RHEL5 would show up as 5Server and RH 5 would show up as 5
Im not sure though.

The short of the story is that i created a link in my repo linking 5 -> 5Server and it worked just fine.

Thanks again
 
Old 09-03-2009, 06:33 AM   #8
Norman Cohen
LQ Newbie
 
Registered: Jul 2001
Location: Wales
Distribution: Debian Yellow Dog
Posts: 2
Blog Entries: 1

Rep: Reputation: 0
I want Debian 5 for PPC but find that downloading it from the Debian site Difficult. For some reason my usual supplier cheap Linux doesn't advertise it and have also tried a person a supplier in America and they want a special price for it as they say they have to make it especially. I don't understand why I should have to pay more for lenny. Can anyone suggest a supplier I'd appreciate help thank you
 
Old 09-03-2009, 07:08 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by Norman Cohen View Post
I want Debian 5 for PPC but find that downloading it from the Debian site Difficult. For some reason my usual supplier cheap Linux doesn't advertise it and have also tried a person a supplier in America and they want a special price for it as they say they have to make it especially. I don't understand why I should have to pay more for lenny. Can anyone suggest a supplier I'd appreciate help thank you
Please, don't hijack existing threads with totally unrelated questions. You can start a new thread about the new subject, instead. Eventually, you can report your own post to kindly ask a moderator to prune it and create a new thread in the most relevant forum. Furthermore it will have the visibility it deserves. Thank you.

Last edited by colucix; 09-03-2009 at 07:09 AM.
 
  


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 variables $distribution/$releasever/$basearch, how to check? MikeyCarter Linux - Software 2 06-09-2008 02:07 PM
variable question true_atlantis Linux - Newbie 5 03-08-2006 03:48 AM
python variable question bendeco13 Programming 6 02-03-2005 07:22 AM
$releasever set to 2.90 brunnopessoa Fedora 9 10-17-2004 12:11 PM
Enviromental variable question wr3ck3d Linux - Software 3 05-01-2003 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 AM.

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