8

On CentOS 6 I cannot install GeoIP even though many websites describe installing GeoIP with the following commands:

yum install GeoIP GeoIP-devel GeoIP-data

I get No package GeoIP available.

6

Seems like you need to add an additional repository. In CentOS5 the Geoip stuff was located in Centos Extras. Check out this link: http://wiki.centos.org/AdditionalResources/Repositories

If the package is not in Extras try out the EPEL repo (howto is in the link above), they have the packages: http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/letter_g.group.html

5
  • It was in EPEL. Extras was already enabled by default. – unixman83 Mar 24 '12 at 12:51
  • how do i install on ubuntu – chovy Dec 26 '15 at 20:46
  • 1
    On Ubuntu : sudo apt-get install libgeoip-dev – hugsbrugs Oct 26 '16 at 19:30
  • To add EPEL repo you can do yum install epel-release – chicks Jan 25 '17 at 1:08
  • seems like your last link is not working any longer – Marc May 8 '18 at 21:33
2

Expanding on the accepted answer above by @zaub3r3r - (Sorry I don't have enough rep to comment here)

GeoIP is in EPEL. You might have it but it may not be enabled - if this is the case then try:

yum -y --enablerepo=epel install geoip

This had me stumped for ages today until I realised what was going on.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.