repositories.asciidoc 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. [[setup-repositories]]
  2. == Repositories
  3. We also have repositories available for APT and YUM based distributions.
  4. We have split the major versions in separate urls to avoid accidental upgrades across major version.
  5. For all 0.90.x releases use 0.90 as version number, for 1.0.x use 1.0, for 1.1.x use 1.1 etc.
  6. We use the PGP key http://pgp.mit.edu/pks/lookup?op=vindex&search=0xD27D666CD88E42B4[D88E42B4],
  7. Elasticsearch Signing Key, with fingerprint
  8. 4609 5ACC 8548 582C 1A26 99A9 D27D 666C D88E 42B4
  9. to sign all our packages. It is available from http://pgp.mit.edu.
  10. [float]
  11. === APT
  12. Download and install the Public Signing Key
  13. [source,sh]
  14. --------------------------------------------------
  15. wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
  16. --------------------------------------------------
  17. Add the following to your /etc/apt/sources.list to enable the repository
  18. ["source","sh",subs="attributes,callouts"]
  19. --------------------------------------------------
  20. sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main"
  21. --------------------------------------------------
  22. Run apt-get update and the repository is ready for use. You can install it with :
  23. [source,sh]
  24. --------------------------------------------------
  25. sudo apt-get update && sudo apt-get install elasticsearch
  26. --------------------------------------------------
  27. Configure Elasticsearch to automatically start during bootup :
  28. [source,sh]
  29. --------------------------------------------------
  30. sudo update-rc.d elasticsearch defaults 95 10
  31. --------------------------------------------------
  32. [float]
  33. === YUM
  34. Download and install the Public Signing Key
  35. [source,sh]
  36. --------------------------------------------------
  37. rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch
  38. --------------------------------------------------
  39. Add the following in your `/etc/yum.repos.d/` directory
  40. in a file named (for example) `elasticsearch.repo`
  41. ["source","sh",subs="attributes,callouts"]
  42. --------------------------------------------------
  43. [elasticsearch-{branch}]
  44. name=Elasticsearch repository for {branch}.x packages
  45. baseurl=http://packages.elasticsearch.org/elasticsearch/{branch}/centos
  46. gpgcheck=1
  47. gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
  48. enabled=1
  49. --------------------------------------------------
  50. And your repository is ready for use. You can install it with :
  51. [source,sh]
  52. --------------------------------------------------
  53. yum install elasticsearch
  54. --------------------------------------------------
  55. Configure Elasticsearch to automatically start during bootup. If your
  56. distribution is using SysV, then you will need to run :
  57. [source,sh]
  58. --------------------------------------------------
  59. chkconfig --add elasticsearch
  60. --------------------------------------------------
  61. Otherwise if your distribution is using systemd :
  62. [source,sh]
  63. --------------------------------------------------
  64. sudo /bin/systemctl daemon-reload
  65. sudo /bin/systemctl enable elasticsearch.service
  66. --------------------------------------------------