LinuxQuestions.org
Visit Jeremy's Blog.
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-15-2013, 01: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, 01: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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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, 03: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, 01:23 PM   #19
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 01:28 PM.
 
Old 01-16-2013, 12: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, 12: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, 12:48 AM   #22
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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, 12: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, 01:17 AM   #24
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
See my post #9; we need to check what you've got first.
 
Old 01-16-2013, 01: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, 05:32 AM   #26
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 01:00 AM   #27
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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, 05:59 AM   #28
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
In post #25, he showed that the dir is empty...
 
Old 01-18-2013, 04:49 PM   #29
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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 04:53 PM.
 
Old 01-19-2013, 01: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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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



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

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

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