LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   DHCP installation problem, CentOS 6.3 (http://www.linuxquestions.org/questions/linux-software-2/dhcp-installation-problem-centos-6-3-a-4175446616/)

sudo_su 01-21-2013 01:03 PM

DHCP installation problem, CentOS 6.3
 
Dear Experts,

I am tring to install dhcp from the packages directory in CentOS 6.3 DVD but it fails, stating that I need dependency and please check the log, it is already installed but still gives error.

Quote:

[root@server Packages]# ls | grep -i dhcp
dhcp-4.1.1-31.P1.el6.x86_64.rpm
dhcp-common-4.1.1-31.P1.el6.x86_64.rpm
sblim-cmpi-dhcp-1.0-1.el6.i686.rpm
sblim-cmpi-dhcp-1.0-1.el6.x86_64.rpm
[root@server Packages]# rpm -ivh dhcp-4.1.1-31.P1.el6.x86_64.rpm
error: Failed dependencies:
dhcp-common = 12:4.1.1-31.P1.el6 is needed by dhcp-12:4.1.1-31.P1.el6.x86_64
[root@server Packages]# rpm -ivh dhcp-common-4.1.1-31.P1.el6.x86_64.rpm
Preparing... ########################################### [100%]
package dhcp-common-12:4.1.1-31.0.1.P1.el6.centos.1.x86_64 (which is newer than dhcp-common-12:4.1.1-31.P1.el6.x86_64) is already installed
[root@server Packages]# rpm -ivh dhcp-4.1.1-31.P1.el6.x86_64.rpm
error: Failed dependencies:
dhcp-common = 12:4.1.1-31.P1.el6 is needed by dhcp-12:4.1.1-31.P1.el6.x86_64
[root@server Packages]#
Please assist.

Regards.

TB0ne 01-21-2013 06:20 PM

Quote:

Originally Posted by sudo_su (Post 4874821)
Dear Experts,
I am tring to install dhcp from the packages directory in CentOS 6.3 DVD but it fails, stating that I need dependency and please check the log, it is already installed but still gives error.

Please assist.

The message clearly tells you it needs 12:4.1.1-31.P1.el6, and you have 12:4.1.1-31.0.1.P1.el6 installed. Using an RPM command isn't a good way to get things in...have you tried typing in "yum install <package name>", which will satisfy dependencies for you? Read the man page on the yum command.

sudo_su 01-22-2013 02:21 AM

Dear TB0ne;

thank you for your reply.

I don't have internet connected to this server as it is dedicated to provide services to internal network only.

As the message indicates, I have newer version installed than the version that is required so I don't understand why isn't it working then.

TB0ne 01-22-2013 10:05 AM

Quote:

Originally Posted by sudo_su (Post 4875198)
Dear TB0ne;
I don't have internet connected to this server as it is dedicated to provide services to internal network only. As the message indicates, I have newer version installed than the version that is required so I don't understand why isn't it working then.

Again, it is looking for EXACTLY that version, and it's telling you that. If it's NOT that exact version, you're getting an error. It's even telling you that, so I'm not sure why that's hard to understand.

You have two options: connect it to the internet and run yum, or run the yum command and hope it can find everything from the DVD. AGAIN, type in "yum install <packagename>".

chrism01 01-23-2013 07:27 PM

Code:

rpm -ivh dhcp-common-4.1.1-31.P1.el6.x86_64.rpm
Preparing... ########################################### [100%]
package dhcp-common-12:4.1.1-31.0.1.P1.el6.centos.1.x86_64 (which is newer than dhcp-common-12:4.1.1-31.P1.el6.x86_64) is already installed

1. As the last msg says, you've ALREADY got a newer version installed on your HDD, so its pointless trying to install a previous version over the top.

2. use 'yum', not rpm; it'll handle dependencies automatically ( for sane requests...)

3. why are you even trying to do this if its already installed ??


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