LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-07-2016, 08:16 AM   #1
mozer
LQ Newbie
 
Registered: Sep 2013
Posts: 28

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, 09:00 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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, 09:14 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

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

Rep: Reputation: 164Reputation: 164
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, 09:54 AM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 11:19 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,149

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
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, 12:55 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

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

Code:
su -
yum repolist all
 
  


Reply

Tags
rhel, yum



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 12:23 AM
rhel additional repositories sycamorex Linux - Software 2 05-30-2008 04:38 PM
RHEL 5+Repositories zcrxsir88 Red Hat 4 02-26-2008 09:58 PM
Yum Repositories for RHEL 5 kdwillson Linux - Enterprise 3 02-11-2008 05:49 AM
Yum Repositories for RHEL ES3 snowinferno Red Hat 2 10-18-2005 06:17 AM

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

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