LinuxQuestions.org
Visit Jeremy's Blog.
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 01-07-2016, 09:16 AM   #1
mozer
LQ Newbie
 
Registered: Sep 2013
Posts: 17

Rep: Reputation: Disabled
Post Repositories on rhel


Hello,

I'm working on rhel 7 and I need to compile c code. The server has no repositories and I had to install new ones, I've installed epel and rpmforge repos but I can't install gcc.

yum install gcc find no matches.

Were can I find a proper source for this?

Any ideas?
 
Old 01-07-2016, 10:00 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
https://access.redhat.com/documentat...ositories.html

usage of your support agreement with RedHat may be required
 
1 members found this post helpful.
Old 01-07-2016, 10:14 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,599

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
You could try using CentOS 7 instead. It is RHEL 7 but with the RH trademarks/logos removed.
 
Old 01-07-2016, 10:48 AM   #4
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,166
Blog Entries: 4

Rep: Reputation: 131Reputation: 131
If you have the install iso, you could create a local repo and install gcc from there. See directions below.

http://www.certdepot.net/rhel7-set-l...epository-lab/
 
Old 01-07-2016, 10:54 AM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
RHEL is not a free distro. Access to the repos requires a current and paid subscription. If you have a current subscription, you should be contacting RH to reset your repos. If you do not have a current subscription, you should not be using RHEL, switch to CentOS instead.
 
Old 01-07-2016, 12:19 PM   #6
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,158

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
If you use multiple repositories, particularly RPMForge, you must make sure they don't overwrite each others library installations, or else disaster may strike!
https://wiki.centos.org/PackageManag...Yum/Priorities

Since gcc is in the RHEL repository, it sounds like this is not a paid-for installation. That means not only no repository, but no updates: if so, you need CentOS.
 
Old 01-07-2016, 01:55 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
post the FULL output of this
-- INCLUDING the error you will get

Code:
su -
yum repolist all
 
  


Reply

Tags
rhel, yum


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
[SOLVED] RHEL 6 Beta repositories DrLove73 Red Hat 1 06-02-2010 01:23 AM
rhel additional repositories sycamorex Linux - Software 2 05-30-2008 05:38 PM
RHEL 5+Repositories zcrxsir88 Red Hat 4 02-26-2008 10:58 PM
Yum Repositories for RHEL 5 kdwillson Linux - Enterprise 3 02-11-2008 06:49 AM
Yum Repositories for RHEL ES3 snowinferno Red Hat 2 10-18-2005 07:17 AM


All times are GMT -5. The time now is 10:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration