LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install dependencies in redhat (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-dependencies-in-redhat-4175493323/)

virus_s7 01-31-2014 11:57 PM

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.

myatthu 02-01-2014 02:26 AM

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]

virus_s7 02-01-2014 11:09 AM

Thanks a lot!!

John VV 02-01-2014 04:23 PM

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

virus_s7 02-04-2014 06:44 PM

Thanks .. a lot.. !!!


All times are GMT -5. The time now is 07:47 PM.