LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-05-2011, 07:47 AM   #1
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Rep: Reputation: 33
How to see the RedHat Subcription via command line in RHEL 5


Hi,

How to see the Redhat Subcription via command line in RHEL 5.

Thanks in Advance.
 
Old 04-05-2011, 07:49 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Hello,

Can you please describe what exactly you mean by "see the redhat subscription?" This doesn't really make any sense to me....

Edit - Would the following be what you are looking for?
Code:
cat /etc/redhat-release

Last edited by corp769; 04-05-2011 at 07:50 AM.
 
Old 04-05-2011, 11:42 PM   #3
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by corp769 View Post
Hello,

Can you please describe what exactly you mean by "see the redhat subscription?" This doesn't really make any sense to me....

Edit - Would the following be what you are looking for?
Code:
cat /etc/redhat-release
Thanks for the reply , and sorry for the confusion , i want to see whether system is register with RedHat Network or not. If we want to configure to RHN then i guess we have run the command "rhn-register". After this command if we want to see is it registered to RHN or not ?
 
Old 04-06-2011, 01:28 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
try
Code:
su -
yum update
if yum fails with a "this is not a registered version "
" rhn will not be used"
then it is not registered or not set up .
 
Old 04-07-2011, 04:58 AM   #5
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Ok , if i want to register with Redhat Network then what is the exact command?
Thanks for your reply.

Quote:
Originally Posted by John VV View Post
try
Code:
su -
yum update
if yum fails with a "this is not a registered version "
" rhn will not be used"
then it is not registered or not set up .
 
Old 04-07-2011, 03:57 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
you might want to start here
https://www.redhat.com/support/
https://www.redhat.com/apps/store/desktop/
and the install guide
http://docs.redhat.com/docs/en-US/Re...ide/index.html
http://docs.redhat.com/docs/en-US/Re...ise_Linux.html
 
Old 04-08-2011, 12:42 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,848

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
Short answer
Code:
rhn_register
as root user
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with line command in RHEL- 5 pramod.srk Linux - Newbie 2 11-10-2009 08:37 AM
Command line/tools in CentOS/RHEL ? tuxuser19 Red Hat 5 10-01-2006 07:07 PM
About Command line in RedHat 9.0??? galyun Linux - General 3 02-18-2004 02:58 AM
Burning CDs via the command line in Redhat 9 Donboy Linux - Newbie 2 08-17-2003 10:21 PM
redhat 9 and apache at the command line - help! paulb Linux - General 2 08-07-2003 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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