CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - X86_64, s390(x) and PowerPC Support
  help need installing an .rpm

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  bobob3
      bobob3
help need installing an .rpm
#1
Newbie
Joined: 2009/11/7
From
Posts: 5
CentOS 5.3 x86 64

OK so I needed httpd-devel so I:

 [root@server ~]# yum install httpd-devel 
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile
Excluding Packages in global exclude list
Finished Setting up Install Process
No package httpd-devel available.
Nothing to do


So I found the .rpm I needed on the net:
http://rpm.pbone.net/index.php3/stat/4/idpl/12382443/com/httpd-devel-2.2.3-22.el5.centos.x86_64.rpm.html

So then I:
 [root@server ~]# wget ftp://ftp.muug.mb.ca/mirror/centos/5.3/os/x86_64/CentOS/httpd-devel-2.2.3-22.el5.centos.x86_64.rpm


Then I:

 [root@server ~]# rpm -Uvh httpd-devel-2.2.3-22.el5.centos.x86_64.rpm
error: Failed dependencies:
         apr-devel is needed by httpd-devel-2.2.3-22.el5.centos.x86_64
         apr-util-devel is needed by httpd-devel-2.2.3-22.el5.centos.x86_64
         httpd = 2.2.3-22.el5.centos is needed by httpd-devel-2.2.3-22.el5.centos.x86_64


So then I yum installed apr-devel and apr-util-devel successfully.

And now I am stuck with this:

 [root@server ~]# rpm -Uvh httpd-devel-2.2.3-22.el5.centos.x86_64.rpm 
error: Failed dependencies:
         httpd = 2.2.3-22.el5.centos is needed by httpd-devel-2.2.3-22.el5.centos.x86_64


And don't know what to do now...any ideas?
Posted on: 2009/11/7 20:06
Create PDF from Post Print
Top
  •  bobob3
      bobob3
Re: help need installing an .rpm
#2
Newbie
Joined: 2009/11/7
From
Posts: 5
Sorry forgot this:

 [root@server ~]# yum install httpd 
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile
Excluding Packages in global exclude list
Finished Setting up Install Process
No package httpd available.
Nothing to do


That's where I'm left.

First I want to know if I'm doing things correctly?

And if so, then I will follow the above process to get the httpd.

If not, how should I be tackling this?
Posted on: 2009/11/7 20:08
Create PDF from Post Print
Top
  •  scottro
      scottro
Re: help need installing an .rpm
#3
Professional Board Member
Joined: 2007/9/3
From NYC
Posts: 666
One thing that *sometimes* works is to install the rpm with

yum localinstall --nogpgcheck <rpm_name>

Sometimes, yum can grab the dependencies that way. It doesn't always work, however.


However, this is strange--there is an httpd-devel package available, I believe it's from the regular repos.
Posted on: 2009/11/7 22:22
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: help need installing an .rpm
#4
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Please refrain from putting very long lines in "code" tags - makes things very hard to read - especially when line feeds that would have been there in the original have been removed. Edited your posts to [re]wrap,

You have problems with your /etc/yum.repos.d/CentOS-Base.repo config. If you can't work it out please post the contents of the file, or revert to the original version.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/7 23:12
Create PDF from Post Print
Top
  •  bobob3
      bobob3
Re: help need installing an .rpm
#5
Newbie
Joined: 2009/11/7
From
Posts: 5
Quote:
by pschaff on 2009/11/7 18:12:09 Please refrain from putting very long lines in "code" tags

Sorry hope this is better.


Quote:
If you can't work it out please post the contents of the file

Here it is:


 

[root@server yum.repos.d]# cat CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://centos.hivelocity.net/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://centos.hivelocity.net/RPM-GPG-KEY-CentOS-5
priority=1
protect=1

#released updates
[update]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://centos.hivelocity.net/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://centos.hivelocity.net/RPM-GPG-KEY-CentOS-5
priority=1
protect=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://centos.hivelocity.net/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://centos.hivelocity.net/RPM-GPG-KEY-CentOS-5
priority=1
protect=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://centos.hivelocity.net/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://centos.hivelocity.net/RPM-GPG-KEY-CentOS-5
priority=1
protect=1

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://centos.hivelocity.net/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://centos.hivelocity.net/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.hivelocity.net/RPM-GPG-KEY-CentOS-5
priority=2
protect=1

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://centos.hivelocity.net/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.hivelocity.net/RPM-GPG-KEY-CentOS-5
priority=2
protect=1

Posted on: 2009/11/10 16:32
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: help need installing an .rpm
#6
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Nothing obvious (to me) wrong. Some comments:

Might go back to the mirrorlist approach - your repo config has been edited to use only one specific mirror.

You have entries for both protectbase and yum-priorities plugins, but are apparently using neither.

I neglected to ask for the contents of /etc/yum.conf. The line from your original post
Excluding Packages in global exclude list
indicates things are being excluded.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/10 19:15
Create PDF from Post Print
Top
  •  bobob3
      bobob3
Re: help need installing an .rpm
#7
Newbie
Joined: 2009/11/7
From
Posts: 5
Here's my yum.conf:

[root@server etc]# cat yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

installonly_limit = 5

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* bind-
           chroot*



So I guess thats the problem? For some reason (I have no idea what) it's set to exclude apache, httpd etc.

Should I just delete all that? I'm pretty confused as to why all thats there...
Posted on: 2009/11/11 1:32
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: help need installing an .rpm
#8
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Quote:

bobob3 wrote:
...
So I guess thats the problem? For some reason (I have no idea what) it's set to exclude apache, httpd etc.

Should I just delete all that? I'm pretty confused as to why all thats there...


IIRC some 3rd party applications that install updated versions from source or tarball replacing CentOS packages (generally not recommended) will do that for you. I'd comment it out and try again.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/11 13:48
Create PDF from Post Print
Top
  •  bobob3
      bobob3
Re: help need installing an .rpm
#9
Newbie
Joined: 2009/11/7
From
Posts: 5
Thanks Phil, commented it out and yum install works, still confused what would have thrown that line in there, but oh well.

Side note question - since I already installed the .rpm manually for httpd-devel, when I now 'yum install httpd-devel' does that overwrite the old package and get me up-to-date with the yum repository version or do I have to uninstall first?
Posted on: 2009/11/11 14:55
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: help need installing an .rpm
#10
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
A later version, if available, will be installed as an update by yum.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/12 14:09
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com