LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to see the RedHat Subcription via command line in RHEL 5 (https://www.linuxquestions.org/questions/linux-general-1/how-to-see-the-redhat-subcription-via-command-line-in-rhel-5-a-873091/)

mail4vijay 04-05-2011 07:47 AM

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.

corp769 04-05-2011 07:49 AM

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

mail4vijay 04-05-2011 11:42 PM

Quote:

Originally Posted by corp769 (Post 4314496)
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 ?

John VV 04-06-2011 01:28 AM

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 .

mail4vijay 04-07-2011 04:58 AM

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 (Post 4315365)
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 .


John VV 04-07-2011 03:57 PM

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

chrism01 04-08-2011 12:42 AM

Short answer
Code:

rhn_register
as root user


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