LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-21-2013, 01:03 PM   #1
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Rep: Reputation: Disabled
Question 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.
 
Old 01-21-2013, 06:20 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,076

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by sudo_su View Post
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.
 
Old 01-22-2013, 02:21 AM   #3
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-22-2013, 10:05 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,076

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by sudo_su View Post
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>".
 
Old 01-23-2013, 07:27 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
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 ??
 
  


Reply

Tags
dhcp, software


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
[SOLVED] CentOS 6 installation with strange X problem DavidMcCann Red Hat 4 07-15-2011 06:20 PM
Installation problem in CentOS 5.2 ? openSourceLover Linux - Server 4 10-23-2009 09:26 AM
CentOS 5.2 Subversion - installation problem dlugasx Linux - Server 7 09-25-2009 04:29 PM
DHCP on CentOS 4.7 - /var/lib/dhcp/dhcpd.leases: Permission denied Latitude Linux - Networking 1 06-05-2009 03:08 AM
Linux CentOS installation problem skylimit Linux - Newbie 2 12-03-2006 04:27 PM


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