LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 12: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, 05:20 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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, 01: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, 09:05 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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, 06:27 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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 05:20 PM
Installation problem in CentOS 5.2 ? openSourceLover Linux - Server 4 10-23-2009 08:26 AM
CentOS 5.2 Subversion - installation problem dlugasx Linux - Server 7 09-25-2009 03:29 PM
DHCP on CentOS 4.7 - /var/lib/dhcp/dhcpd.leases: Permission denied Latitude Linux - Networking 1 06-05-2009 02:08 AM
Linux CentOS installation problem skylimit Linux - Newbie 2 12-03-2006 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:09 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
Open Source Consulting | Domain Registration