LinuxQuestions.org
Help answer threads with 0 replies.
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 02-01-2014, 12:57 AM   #1
virus_s7
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Rep: Reputation: Disabled
how to install dependencies in redhat


Hi there,

Actually I am new to RedHat and exploring it, and till now finding it very interesting. so while doing some experiment I have come accross with few problems.


I have set up a local YUM Server and was trying to install "httpd-2.2.3-53.el5.i386"

First I tried:
Code:
# yum install httpd-2.2.3-53.el5.i386
it showed me so many thing and at the end it says
Code:
Public key for httpd-2.2.3-53.el5.i386.rpm is not installed
then I tryed to install with the following way (I guess these both ways actually do the same thing)

Code:
# rpm -ivh httpd-2.2.3-53.el5.i386
and at the end i get a warning of

Code:
Warning: 

Error: Failed dependencies: 
 libapr-1.so.0 is needed by httpd-2.2.3-53.el5.i386
 libaprutil-1.so.0 is needed by httpd-2.2.3-53.el5.i386
Now my questions are:

1. How can I install in a way that dependencies are going to be installed automatically
2. How can I download those particular rpms and from where? Moreover I want to download all latest rpms and want to store into my local YUM server, if I somehow download a rpm can I just drag and drop to my YUM Server folder or do I need to run once again the command "createrepo ..... " ?

Thanks in advance.
 
Old 02-01-2014, 03:26 AM   #2
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
First I tried:
Code:
# yum install httpd-2.2.3-53.el5.i386
it showed me so many thing and at the end it says
Code:
Public key for httpd-2.2.3-53.el5.i386.rpm is not installed

You need to import your local repository gpg key
Code:
rpm --import http://[your local server]/RPM-GPG-KEY-CentOS-X


then I tryed to install with the following way (I guess these both ways actually do the same thing)

Code:
# rpm -ivh httpd-2.2.3-53.el5.i386
and at the end i get a warning of

Code:
Warning: 

Error: Failed dependencies: 
 libapr-1.so.0 is needed by httpd-2.2.3-53.el5.i386
 libaprutil-1.so.0 is needed by httpd-2.2.3-53.el5.i386
It is expected behaviour that if you install with rpm utils you need to install dependency package in advance. That's where yum utils come in for resolve automatically for you

Now my questions are:

1. How can I install in a way that dependencies are going to be installed automatically
Code:
yum command
2. How can I download those particular rpms and from where? Moreover I want to download all latest rpms and want to store into my local YUM server, if I somehow download a rpm can I just drag and drop to my YUM Server folder or do I need to run once again the command "createrepo ..... " ?
Code:
Redhat official subscription, you can use rhn-update. You just need redhat network account to download packages. 
Let say for security reason, you don't have direct access to internet. Redhat solution called satellite. You can look around.
If you are using community based like CentOS, you need to mirror public domains server for updated packages.
Thanks in advance.[/QUOTE]
 
Old 02-01-2014, 12:09 PM   #3
virus_s7
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks a lot!!
 
Old 02-01-2014, 05:23 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
also unless you NEED and i do mean NEED to use the older RHEL 5.10
it would be better to install the current RHEL 6.5

also DO NOT use the full name
Code:
su -
yum install httpd
is all you need
if you use "httpd-2.2.3-53.el5.i386"
the dependance's for that EXPLICIT version might not be there

and if you MUST install the 32 bit version ( i386) on a 64 bit OS
you will need all the 32 bit compatibility software to go with it
and if you try to install an older version "httpd-2.2.3-53.el5.i386"
httpd-2.2.3-83.el5.centos.i386.rpm is the version in 5.10

the dependencies will not get installed -- they will be older than the current

so
do you have a 32 bit install of rhel5.10 on OLD 32 bit hardware
if so then install the 32 bit ( the ONLY version you can install on 32 bit hardware )

but if you have a 64 bit install
USE the 64 bit version

also installing the software group would be best
Code:
su -
yum groupinstall "Web Server"
this is from
Code:
su -
yum grouplist

Quote:
1. How can I install in a way that dependencies are going to be installed automatically
you get access to RHN with the REQUIRED paid for support contract
the standard 1 year SERVER license is $799/year
the standard 1 year DESKTOP license is $299 / year

you have to buy the license to install software
-- there are no "if's, and's or but's about that
buy the required support contract !!!

or
install the FREE clone
CentOS 6.5
or the older 5 series for OLD hardware
CentOS 5.10

Quote:
How can I download those particular rpms and from where?
from RHN with the paid for support contract

or
install Centos6.5 or the older 5.10

Last edited by John VV; 02-01-2014 at 05:29 PM.
 
Old 02-04-2014, 07:44 PM   #5
virus_s7
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks .. a lot.. !!!
 
  


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
Redhat EL5 causing dependencies problems elthox Linux - Newbie 3 04-21-2008 05:25 AM
RedHat 9 mplayer Failed Dependencies problem shawnb Red Hat 17 10-24-2004 09:41 PM
apt-get Redhat 10 Dependencies??? Medic6666 Linux - Software 6 06-23-2004 02:08 PM
redhat-update-packages -- dependencies failing dkaplowitz Red Hat 3 11-25-2003 11:29 AM
Redhat 9 module dependencies, help??? liontech2002 Linux - General 2 08-13-2003 09:53 PM


All times are GMT -5. The time now is 11:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration