LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-15-2013, 02:23 AM   #16
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled

Dear John VV

I have taken large instance only and redhat and amazon have tie up and its licensed version only and now i m able to find yum.repos.d folder in /etc/ but i am not able to find entry of the linux os in yum repository.
 
Old 01-15-2013, 02:24 AM   #17
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

The version of the distribution is not mentioned in that folder. That folder is where the definition files for the yum repositories are saved. As indicated by John VV, contact AWS support and ask them about your problem. I don't have personal experience with Amazon EC2 but on their site I only see Red Hat 6.2 as AMIs (Amazon Machine Image). Your best chances to get this solved are to contact AWS support.

Kind regards,

Eric
 
Old 01-15-2013, 04:33 AM   #18
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear John VV,

can you please tell me how to install yum newly in the same machine... I am not able to find the URL to download .rpm file for yum for redhat 5.4
 
Old 01-15-2013, 02:23 PM   #19
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
I am using a amazon ec2 machine.
some clarification please

you are renting a amazon cloud server ?
or
you physically have a server ( one you can see and touch )



on RHEL 5.4 you do not install "yum"
it is installed already

you just do not have any repos installed to install software from

if amazon will let you install software to the os running on there server ( big if , you need to ask them )

two options
1)
then buy a rhel5 license
and talk to the sales rep and explain your situation
they can point you to a link where you can get the " RHN.repo " [ Red Hat Network . "software" (repo)sitory ] and anything else you need

or

2)
migrate the RHEL5.4 to CentOS 5.8
( should work going from 5.4 to 5.8 )
see the centOS migration guide
http://wiki.centos.org/HowTos/Migrat...=%28migrate%29

and use the code for the older unsupported version
as root !!!!
Code:
su -
----- type in your root password when asked ----

 cp /etc/redhat-release /etc/redhat-release-saved
 rpm -e --nodeps redhat-release-notes redhat-release yum-rhn-plugin redhat-logos
 rpm -ivh http://vault.centos.org/5.0/os/i386/CentOS/centos-release-5-0.0.el5.centos.2.i386.rpm  http://vault.centos.org/5.0/os/i386/CentOS/centos-release-notes-5.0.0-2.i386.rpm
now if the above works and you have CentOS 5 listed on the REBOOT ( if amazon allows you to reboot a remote machine )

-- again talk to Amazon cloud service you might not be able to do any of this , or you might ?

PS.
once you do this

rpm -e --nodeps redhat-release-notes redhat-release yum-rhn-plugin redhat-logos

there is NO going back


and if all the above works you still need to upgrade the unsupported centos 5.4 to centos 5.8
( that is easy so if you can get this far then we can walk you through that )

Last edited by John VV; 01-15-2013 at 02:28 PM.
 
Old 01-16-2013, 01:00 AM   #20
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear John VV,

We renting a cloud server see i have taken another instance at amazon ec2 server and in that machine yum is working fine for me.. but for this specific instance its not working.
 
Old 01-16-2013, 01:08 AM   #21
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear John VV,

Can you please tell me how to install apt-get on linux machine for RH 5.4 please help me on this.

Basically i want to install gcc and java on my OS so i was using yum ..

if yum is not working then i will go with apt-get and install gcc and java
 
Old 01-16-2013, 01:48 AM   #22
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
apt-get
is a Debian program and is not supported on RedHat OS's

it you want to use apt-get
then install Debian 6 or 7


have your Amazon tech service install the needed red hat repo files

that is what your missing
the files that tell yum where to look
 
Old 01-16-2013, 01:53 AM   #23
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear John VV,

Can i know how can i update the repo files of yum
 
Old 01-16-2013, 02:17 AM   #24
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
See my post #9; we need to check what you've got first.
 
Old 01-16-2013, 02:21 AM   #25
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear Chris,

There is nothing in that directory.


root@ip-10-12-195-154:[/root]
$ cd /etc/yum.repos.d/
root@ip-10-12-195-154:[/etc/yum.repos.d]
$ ll
total 0
 
Old 01-16-2013, 06:32 AM   #26
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You mentioned another instance you have that works. If its the same OS and major version (ie RHEL v5.x), you can probably copy over the repo files and run them here.
You should probably ask Amazon though, if they are supplying the instance that's not working.
 
Old 01-17-2013, 02:00 AM   #27
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,377
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
See my post #9; we need to check what you've got first.

Chris needs you to run these commands in your terminal.

Code:
ls /etc/yum.repos.d

cat /etc/yum.repos.d/*

Here's an example of mine in Fedora-
Code:
adobe-linux-x86_64.repo      rpmfusion-free-updates.repo
fedora.repo                  rpmfusion-free-updates-testing.repo
fedora-updates.repo          rpmfusion-nonfree-rawhide.repo
fedora-updates-testing.repo  rpmfusion-nonfree.repo
rpmfusion-free-rawhide.repo  rpmfusion-nonfree-updates.repo
rpmfusion-free.repo          rpmfusion-nonfree-updates-testing.repo
[redhat ~]$
 
Old 01-17-2013, 06:59 AM   #28
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
In post #25, he showed that the dir is empty...
 
Old 01-18-2013, 05:49 PM   #29
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,377
Blog Entries: 6

Rep: Reputation: Disabled
My bad; sorry as he clearly said-
Quote:
There is nothing in that directory.
Wondering why it's empty and should this be so?
Trying to understand-

Last edited by Ztcoracat; 01-18-2013 at 05:53 PM.
 
Old 01-19-2013, 02:51 AM   #30
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by Ztcoracat View Post
My bad; sorry as he clearly said-

Wondering why it's empty and should this be so?
Trying to understand-
Hi,

That's because it's Red Hat. Unless you register with RHN no repositories get configured/activated, except for CD/DVD in best case scenario. If you work with Red Hat you pay the subscription, register with RHN and that will give you access to the repositories.

Kind regards,

Eric
 
  


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
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
Yum not working at all due to /usr/bin/yum syntax error aheusdens Linux - General 1 04-09-2010 05:15 PM
yum not working revathskumar Linux - Newbie 4 09-22-2009 03:45 AM
Why is YUM not working? rayj00 Linux - Software 2 10-07-2006 10:44 PM
yum not working saipraveen Linux - Newbie 4 08-23-2005 12:34 AM


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