LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-18-2012, 01:35 AM   #1
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Rep: Reputation: Disabled
Question Yum problem in fresh Installed RHEL 6


Dear respected experts,

I had installed RHEL6 on my server and when I try to install packages and updates it gives me following error.

Quote:
[root@localhost ~]# yum install squid
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package squid available.
Error: Nothing to do

[root@localhost ~]# yum update
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Update Process
No Packages marked for Update

[root@localhost ~]# yum check-update
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
[root@localhost ~]#
I used to apply these commands on CentOS but now I want to switch to RHEL to make my hands dirty with this flavor.

Please assist.

Last edited by sudo_su; 12-18-2012 at 01:36 AM.
 
Old 12-18-2012, 01:49 AM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Unlike its descendant CentOS, RHEL has a subscription-based support model. Which means you need to have a RHN subscription to use to update from official repos. So you either have to configure your system to use RHN or switch to CentOS repos. Try "sudo yum repolist" to see active repos for you.

If you don't want to pay for RHN, your choices would be to switch to an alternative distro or change your system to use CentOS (or other RHEL compatible repos).

Edit: CentOS is practically RHEL sans the trademarks. Red Hat may not provide packaged updates for non-subscribed RHEL installs, but remember the reason CentOS, Scientific Linux, etc. are able to exist is Red Hat being nice and providing sources.

Last edited by SkyEye; 12-18-2012 at 01:54 AM.
 
Old 12-18-2012, 01:56 AM   #3
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
thankyou skyeye

1: Can you please tell me command used to configure RHN as I dont have GUI

2: The most important, how can I configure my RHEL to use CentOS repo? ( I dont have any idea so in little detail please with commands and RHEL compatible repo)

Quote:
[root@localhost ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
repolist: 0
 
Old 12-18-2012, 02:08 AM   #4
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Quote:
Originally Posted by sudo_su View Post
thankyou skyeye

1: Can you please tell me command used to configure RHN as I dont have GUI

2: The most important, how can I configure my RHEL to use CentOS repo? ( I dont have any idea so in little detail please with commands and RHEL compatible repo)
First from your 'yum repolist' I can see that you have no repos configured. Second, you can find answers to both your questions by Googling.

Here's a few pointers anyway.
1. You'll need to buy (if you haven't already) a RHN subscription. There are guides about configuration. Eg: RHN Client Configuration.

2. You'll probably need to install "centos-release" and/or add yum repo files. Better google it.
 
Old 12-18-2012, 02:15 AM   #5
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
Dear SkyEye,

As you mentioned i have no repo configured, can you plese tell me how to configure it? second I already googled and tried the methods to use some other repo, including one method of making "Foo" file with nexcraft repo and rest of methods but non of them worked :S so finally, posted to experts here.

Can you please give me some more idea about Sno#2.
 
Old 12-18-2012, 02:22 AM   #6
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Quote:
Originally Posted by sudo_su View Post
Can you please give me some more idea about Sno#2.
Follow this guide and replace the commands with the correct distro version and architecture you have. The guide uses CentOS 5.4 and i386. Replace these with your values.
 
Old 12-18-2012, 02:34 AM   #7
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
Not working :S

Quote:
[root@localhost rhn]# yum clean all
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Cleaning repos:
Cleaning up Everything
[root@localhost rhn]# cd ..
[root@localhost sysconfig]# cd
[root@localhost ~]# ls
anaconda-ks.cfg install.log install.log.syslog
[root@localhost ~]# mkdir ~/centos
[root@localhost ~]# cd ~
[root@localhost ~]# ls
anaconda-ks.cfg centos install.log install.log.syslog
[root@localhost ~]# cd centos/
[root@localhost centos]# wget http://mirror.centos.org/centos/5.4/...G-KEY-CentOS-5
--2012-12-18 21:17:02-- http://mirror.centos.org/centos/5.4/...G-KEY-CentOS-5
Resolving mirror.centos.org... 69.36.14.117
Connecting to mirror.centos.org|69.36.14.117|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-12-18 21:17:03 ERROR 404: Not Found.

[root@localhost centos]# ping www.yahoo.com
PING ds-any-fp3-real.wa1.b.yahoo.com (98.138.253.109) 56(84) bytes of data.
64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_seq=1 ttl=46 time=291 ms
64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_seq=2 ttl=46 time=324 ms
64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_seq=3 ttl=46 time=319 ms
^C64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_seq=4 ttl=46 time=315 ms
^C
--- ds-any-fp3-real.wa1.b.yahoo.com ping statistics ---
5 packets transmitted, 4 received, 20% packet loss, time 4293ms
rtt min/avg/max/mdev = 291.886/312.848/324.501/12.512 ms
[root@localhost centos]# wget http://mirror.centos.org/centos/5.4/...G-KEY-CentOS-5
--2012-12-18 21:17:39-- http://mirror.centos.org/centos/5.4/...G-KEY-CentOS-5
Resolving mirror.centos.org... 69.36.14.117
Connecting to mirror.centos.org|69.36.14.117|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-12-18 21:17:40 ERROR 404: Not Found.

[root@localhost centos]# wget http://mirror.centos.org/centos/5.4/...tos.1.i386.rpm
--2012-12-18 21:17:47-- http://mirror.centos.org/centos/5.4/...tos.1.i386.rpm
Resolving mirror.centos.org... 69.36.14.117
Connecting to mirror.centos.org|69.36.14.117|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-12-18 21:17:48 ERROR 404: Not Found.

[root@localhost centos]# wget http://mirror.centos.org/centos/5.4/...5.4-4.i386.rpm
--2012-12-18 21:18:07-- http://mirror.centos.org/centos/5.4/...5.4-4.i386.rpm
Resolving mirror.centos.org... 69.36.14.117
Connecting to mirror.centos.org|69.36.14.117|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-12-18 21:18:08 ERROR 404: Not Found.

[root@localhost centos]# wget http://mirror.centos.org/centos/5.4/...tos.noarch.rpm
--2012-12-18 21:18:17-- http://mirror.centos.org/centos/5.4/...tos.noarch.rpm
Resolving mirror.centos.org... 69.36.14.117
Connecting to mirror.centos.org|69.36.14.117|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-12-18 21:18:18 ERROR 404: Not Found.

[root@localhost centos]# wget http://mirror.centos.org/centos/5.4/...el5.noarch.rpm
--2012-12-18 21:18:31-- http://mirror.centos.org/centos/5.4/...el5.noarch.rpm
Resolving mirror.centos.org... 69.36.14.117
Connecting to mirror.centos.org|69.36.14.117|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-12-18 21:18:32 ERROR 404: Not Found.
 
Old 12-18-2012, 02:36 AM   #8
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
Is this gona help me out

http://wiki.centos.org/AdditionalRes...ories/RPMForge
 
Old 12-18-2012, 02:41 AM   #9
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Did you forget the part where I said:
Quote:
Originally Posted by SkyEye View Post
The guide uses CentOS 5.4 and i386. Replace these with your values.
For example in one box, I used the command:
instead of "wget http://mirror.centos.org/centos/5.4/os/i386/RPM-GPG-KEY-CentOS-5". You'll have to figure out broken links, usually by visiting the URL is a browser and changing values.

You can get your arch by "uname -i" and your distro target version right now should be 6.3.

Last edited by SkyEye; 12-18-2012 at 02:46 AM.
 
Old 12-18-2012, 04:40 AM   #10
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
tried almost everything available on google BUT not working :S

switching back to CentOS
 
Old 12-18-2012, 04:49 AM   #11
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
This is a fairly trivial operation, if you followed a guide and used your system arch and version. Don't know why you couldn't get it working. Anyway, good luck.
 
  


Reply



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
Fresh install of RHEL does not have yum and apt-get saleskira Linux - Newbie 2 08-12-2012 10:07 PM
YUM problem in RHEL 6 rhel6_user123 Linux - Software 2 05-12-2011 11:21 AM
RHEL 5 yum Problem no RHN subcsription ngrid Linux - Distributions 2 04-16-2010 10:43 AM
Problem With Yum and RPM in RHEL Client 5 kaplan71 Red Hat 1 11-07-2007 09:01 AM
problem booting a fresh installed slackware 10.2 macBasH Slackware 10 01-24-2006 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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