LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-01-2015, 01:44 PM   #1
m.alien
LQ Newbie
 
Registered: Mar 2015
Posts: 3

Rep: Reputation: Disabled
Can't set repos in RHEL6.0, unable to install packages


Hi all.
RHEL 6.0 in Virtual Box, network is ok, it can resolve all repos (f.e. dl.fedoraproject.org, nginx.org),
but when I'm trying
Code:
# rpm -Uvh http://nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm
I get:
Code:
curl: (6) Couldn't resolve host
When I'm trying with ip instead name:
Code:
curl: (22) The requested URL returned error: 404
Only rpmforge repo enabled, but it can't find any packets for install/update.

What can I do?
Thanks.
 
Old 03-01-2015, 02:42 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i take it you do not know that RHEL6.0 is now SIX minor versions and 4+ years out of date

please use the current older( but up to date) RHEL 6.6
or the CURRENT RHEL 7.0

also redhat is NOT !!! free
you MUST !!! BUY !!! THE REQUIRED !!! SUPPORT CONTRACT !!!
the standard 1 year single desktop install license is $299 per year

basically if you do not BUY the required contract you DO NOT INSTALL ANY SOFTWARE ON A UNLICENSED INSTALL OF RHEL


or

install the CURRENT free rebuild of the redhat code
CentOS 7.0
or the older CentOS 6.6

cent IS FREE

Last edited by John VV; 03-01-2015 at 02:43 PM.
 
Old 03-01-2015, 02:51 PM   #3
m.alien
LQ Newbie
 
Registered: Mar 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
I know that RHEL is not free, but isn't it for just support, not only for using with third-party repos?
+30-day trial still exist, I mean I mustn't buy it, yes?
I must notice, that for 6.6 all the same.
I know about free CentOS. All I wanted to read - is how can I set repos on RHEL, because it can be useful for me in my work.
 
Old 03-01-2015, 03:04 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by m.alien View Post
Hi all.
RHEL 6.0 in Virtual Box, network is ok, it can resolve all repos (f.e. dl.fedoraproject.org, nginx.org), but when I'm trying
Code:
# rpm -Uvh http://nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm
I get:
Code:
curl: (6) Couldn't resolve host
When I'm trying with ip instead name:
Code:
curl: (22) The requested URL returned error: 404
Only rpmforge repo enabled, but it can't find any packets for install/update. What can I do?
The first (and VERY obvious) question is: how do you KNOW you can 'resolve all repos'??? It clearly CAN'T resolve nginx.org, or you'd get a different message. And the 404 error indicates that the package itself is missing.

And Fedora is NOT RHEL...mixing repositories isn't a good idea. Also, if you want to install packages like that, you need to use "yum" to install them, since that will also install the package dependencies.
Quote:
Originally Posted by m.alien
know that RHEL is not free, but isn't it for just support, not only for using with third-party repos?
If you're going to use RHEL, you need to PAY for it. That gets you access not only to support, but also for the Red Hat network, for patches/updates/security fixes/bugfixes, and other things. If you're not going to pay, then DO NOT USE IT, because all you'll wind up with is an unstable, insecure system that's more difficult to manage. Load the TOTALLY free and nearly IDENTICAL CentOS instead.
Quote:
+30-day trial still exist, I mean I mustn't buy it, yes?
Yes, you MUST buy it if you continue to use it after 30 days...that's EXACTLY what a 30 day trial is.
Quote:
I must notice, that for 6.6 all the same. I know about free CentOS. All I wanted to read - is how can I set repos on RHEL, because it can be useful for me in my work.
If you know about CentOS, you have absolutely NO REASON to use RHEL without paying. And if this will be useful for you in your work, putting "how to configure repositories in rhel linux" into Google pulls up:
https://access.redhat.com/documentat...ositories.html
https://access.redhat.com/documentat...ositories.html

...as the first two hits, from Red Hat's own website. If you're going to be working with Linux (or ANYTHING, really), the best skill for your work would be to know how to do basic research, and look things up for yourself
 
Old 03-01-2015, 03:37 PM   #5
m.alien
LQ Newbie
 
Registered: Mar 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Of cooourse, I've used google before trying to post my first message, thanks.

About resolving: is successful ping and direct access from browser insufficiently?

Some forums reccomend EPEL, Atrpms, that's why I tried to use it.
I read documentation, ok. It says how to configure, but doesn't say, what repos to use.

Just tried to work in RHEL, because it described in an RHCSA guide without any warnings about configuring repos.
Ok, I'll try CentOS...

Thanks.
 
Old 03-02-2015, 09:21 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by m.alien View Post
Of cooourse, I've used google before trying to post my first message, thanks.
Ok...then why didn't you see the instructions from Red Hat's website, or any of the other 1.2 million hits?
Quote:
About resolving: is successful ping and direct access from browser insufficiently?
If you can access the URL from your web browser, then curl should work too.
Quote:
Some forums reccomend EPEL, Atrpms, that's why I tried to use it. I read documentation, ok. It says how to configure, but doesn't say, what repos to use.
Because you can you ANY that you'd like...it's up to YOU to decide.
Quote:
Just tried to work in RHEL, because it described in an RHCSA guide without any warnings about configuring repos. Ok, I'll try CentOS...
Right, because if you have RHEL, the training guides will assume you're PAYING FOR IT, as you should be. If you already knew about CentOS, you'd also know it's nearly identical to RHEL, except for branding and artwork. No reason not to use it for a 'certification'.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How often do you install packages outside your distro's repos? $(( 10#$x )) Linux - General 21 12-06-2013 10:53 AM
Unable to install RHEL6.1 on my pc krishnakishorerhce Linux - Software 1 07-02-2013 09:19 PM
Unable to install RHEL6.1 on my pc krishnakishorerhce Linux - Desktop 1 07-02-2013 09:06 PM
Unable to update repos in CentOS 5.6 yum.repos.d!!!!! Explore_Linux Linux - Newbie 1 09-28-2011 04:20 AM
Switching/adding repos in RHEL6 Alexvader Red Hat 3 11-28-2010 07:18 PM

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

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