LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't set repos in RHEL6.0, unable to install packages (https://www.linuxquestions.org/questions/linux-newbie-8/cant-set-repos-in-rhel6-0-unable-to-install-packages-4175535455/)

m.alien 03-01-2015 01:44 PM

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.

John VV 03-01-2015 02:42 PM

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

m.alien 03-01-2015 02:51 PM

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.

TB0ne 03-01-2015 03:04 PM

Quote:

Originally Posted by m.alien (Post 5325237)
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

m.alien 03-01-2015 03:37 PM

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.

TB0ne 03-02-2015 09:21 AM

Quote:

Originally Posted by m.alien (Post 5325278)
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'.


All times are GMT -5. The time now is 12:01 PM.