# how to \`go install\` from gitea

**URL:** <https://forum.gitea.com/t/how-to-go-install-from-gitea/6798>\
**Category:** Install/Maintain/Configure\
**Created:** [February 27, 2023, 6:28am UTC](https://forum.gitea.com/t/how-to-go-install-from-gitea/6798 "2023-02-27T06:28:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![urko](https://avatars.discourse-cdn.com/v4/letter/u/a4c791/32.png) [@urko](https://forum.gitea.com/u/urko)\
**Post date:** [February 27, 2023, 6:28am UTC](https://forum.gitea.com/t/how-to-go-install-from-gitea/6798/1 "2023-02-27T06:28:24Z")

</div>

I’m trying to install a package from a self-hosted gitea instance. I’m trying to get a package running `go install gitea.urkob.com/urko/go-root-dir` but I’m getting this error

```bash
no required module provides package gitea.urkob.com/urko/go-root-dir; to add it:
        go get gitea.urkob.com/urko/go-root-dir

```

Any help would be appreciated to show me how can I configure my go env.

I’ve set `GOPRIVATE="gitea.urkob.com/urko"` but it still not working, I don’t know if I’m missing something.

---

<div class="post-metadata">

**Author:** ![urko](https://avatars.discourse-cdn.com/v4/letter/u/a4c791/32.png) [@urko](https://forum.gitea.com/u/urko)\
**Post date:** [February 27, 2023, 1:48pm UTC](https://forum.gitea.com/t/how-to-go-install-from-gitea/6798/2 "2023-02-27T13:48:43Z")

</div>

Ok, I’ve got an answer from stackoverflow. Which I had to use `go get` instead of `go install`my fault sorry 😃 [how to `go install` from gitea - Stack Overflow](https://stackoverflow.com/questions/75570970/how-to-go-install-from-gitea/75575890#75575890)
