2020-12-15 15:49:51 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
---
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
`git-secret` relies on two dependencies: `git` and `gpg`. Download and install them before using this project. `git-secret` is tested to work with:
|
|
|
|
|
2021-05-03 14:23:54 +00:00
|
|
|
```
|
|
|
|
git version 2.7.0
|
|
|
|
gpg (GnuPG) 1.4.20
|
|
|
|
```
|
2020-12-15 15:49:51 +00:00
|
|
|
|
|
|
|
## Supported platforms
|
|
|
|
|
2021-05-03 14:23:54 +00:00
|
|
|
`git-secret` works with `Mac OS X` >= 10.9, `Ubuntu` >= 14.04, `Debian` >= 8.3, and `Fedora` / `CentOS`.
|
2021-05-06 11:51:06 +00:00
|
|
|
You can check the full list [here](https://github.com/sobolevn/git-secret/blob/master/.github/workflows/test.yml).
|
2020-12-15 15:49:51 +00:00
|
|
|
You can add your platform to this list, if all the tests pass for you.
|
|
|
|
`Cygwin` support [is planned](https://github.com/sobolevn/git-secret/issues/40).
|
|
|
|
|
|
|
|
## Installation process
|
|
|
|
|
|
|
|
There are several ways to install `git-secret`:
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### Homebrew
|
|
|
|
|
|
|
|
`brew install git-secret`
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### `deb` package
|
|
|
|
|
2021-05-04 19:06:40 +00:00
|
|
|
You can find the `deb` repository [here](https://gitsecret.jfrog.io/artifactory/git-secret-deb/).
|
2021-05-04 09:26:39 +00:00
|
|
|
Pre-requirements: make sure you have installed `apt-transport-https` and `ca-certificates`
|
2020-12-15 15:49:51 +00:00
|
|
|
|
|
|
|
```bash
|
2021-05-05 12:59:28 +00:00
|
|
|
{% include install-deb.sh %}
|
2020-12-15 15:49:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### `rpm` package
|
|
|
|
|
2021-05-04 19:06:40 +00:00
|
|
|
You can find the `rpm` repository [here](https://gitsecret.jfrog.io/artifactory/git-secret-rpm/).
|
2020-12-15 15:49:51 +00:00
|
|
|
|
|
|
|
```bash
|
2021-05-05 12:59:28 +00:00
|
|
|
{% include install-rpm.sh %}
|
2020-12-15 15:49:51 +00:00
|
|
|
```
|
|
|
|
|
2021-05-05 12:59:28 +00:00
|
|
|
---
|
|
|
|
|
2021-05-06 10:16:48 +00:00
|
|
|
### Alpine
|
|
|
|
|
|
|
|
You can find the `apk` repository [here](https://gitsecret.jfrog.io/artifactory/git-secret-apk/).
|
2021-05-06 14:47:41 +00:00
|
|
|
See list of supported architectures [here](https://github.com/sobolevn/git-secret/blob/master/utils/apk/meta.sh)
|
2021-05-06 10:16:48 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
{% include install-apk.sh %}
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2020-12-15 15:49:51 +00:00
|
|
|
### Arch Linux
|
|
|
|
|
|
|
|
The _Arch_ way to install git-secret is to use the directions for
|
|
|
|
"Installing Packages" at [Arch User Repository Documentation](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages)
|
|
|
|
along with the `PKGBUILD` file from the [git-secret Arch Linux Package](https://aur.archlinux.org/packages/git-secret/)
|
|
|
|
|
2021-05-03 14:23:54 +00:00
|
|
|
You can also install from the [AUR](https://aur.archlinux.org/) using your helper of choice by
|
2020-12-15 15:49:51 +00:00
|
|
|
installing the package `git-secret`, for example using [yay](https://github.com/Jguer/yay)
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yay -S git-secret
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### Manual
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/sobolevn/git-secret.git git-secret
|
|
|
|
cd git-secret && make build
|
|
|
|
PREFIX="/usr/local" make install
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that you can install to any prefix in your `PATH`
|