# GPG Key

**URL:** <https://discuss.elastic.co/t/gpg-key/261891>\
**Category:** Elasticsearch\
**Created:** [January 22, 2021, 9:35am UTC](https://discuss.elastic.co/t/gpg-key/261891 "2021-01-22T09:35:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alipujaistopo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alipujaistopo/32/50791_2.png) [@alipujaistopo](https://discuss.elastic.co/u/alipujaistopo)\
**Post date:** [January 22, 2021, 9:35am UTC](https://discuss.elastic.co/t/gpg-key/261891/1 "2021-01-22T09:35:47Z")

</div>

hi guys, i wanna ask something about installation elastic and beats, because they need GPG-key and my server can't access public internet. how can i add a GPG Key manually? thanks

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [January 22, 2021, 2:39pm UTC](https://discuss.elastic.co/t/gpg-key/261891/2 "2021-01-22T14:39:41Z")

</div>

Download the key file from [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch). Then copy the file to your network. And install the key from file.

`rpm --import ./GPG-KEY-elasticsearch`

or

`apt-key add ./GPG-KEY-elasticsearch`

---

<div class="post-metadata">

**Author:** ![alipujaistopo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alipujaistopo/32/50791_2.png) [@alipujaistopo](https://discuss.elastic.co/u/alipujaistopo)\
**Post date:** [January 29, 2021, 11:26am UTC](https://discuss.elastic.co/t/gpg-key/261891/3 "2021-01-29T11:26:03Z")

</div>

oke andrew i got. and then how about this?

sudo yum install --enablerepo=elasticsearch elasticsearch  
sudo dnf install --enablerepo=elasticsearch elasticsearch  
sudo zypper modifyrepo --enable elasticsearch &&   
sudo zypper install elasticsearch;   
sudo zypper modifyrepo --disable elasticsearch

i just make the repo. and how to run the repo manually (without access internet) ?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [January 31, 2021, 6:52pm UTC](https://discuss.elastic.co/t/gpg-key/261891/4 "2021-01-31T18:52:29Z")

</div>

> [@alipujaistopo](#):
>
> how to run the repo manually

Sorry, I don't understand the question. What are you trying to accomplish?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 28, 2021, 6:53pm UTC](https://discuss.elastic.co/t/gpg-key/261891/5 "2021-02-28T18:53:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
