mirror of
https://github.com/goreleaser/nfpm
synced 2024-06-06 18:56:25 +02:00
docs: improve install
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
ad3796e44a
commit
1a8aebfb2f
|
@ -1,51 +1,72 @@
|
|||
# Install
|
||||
|
||||
You can install the pre-compiled binary (in several different ways),
|
||||
use Docker or compile from source.
|
||||
You can install the pre-compiled binary (in several different ways), use Docker or compile from source.
|
||||
|
||||
Here are the steps for each of them:
|
||||
Bellow you can find the steps for each of them.
|
||||
|
||||
## Install the pre-compiled binary
|
||||
|
||||
**homebrew tap** (official):
|
||||
### homebrew tap
|
||||
|
||||
```sh
|
||||
brew install goreleaser/tap/nfpm
|
||||
```
|
||||
|
||||
**homebrew** (may not be the latest version):
|
||||
### homebrew
|
||||
|
||||
```sh
|
||||
brew install nfpm
|
||||
```
|
||||
|
||||
**scoop**:
|
||||
!!! info
|
||||
The [formula in homebrew-core](https://github.com/Homebrew/homebrew-core/blob/master/Formula/nfpm.rb) might be slightly outdated.
|
||||
Use our homebrew tap to always get the latest updates.
|
||||
|
||||
#### scoop
|
||||
|
||||
```sh
|
||||
scoop bucket add goreleaser https://github.com/goreleaser/scoop-bucket.git
|
||||
scoop install nfpm
|
||||
```
|
||||
|
||||
**deb/rpm/apk**:
|
||||
### apt
|
||||
|
||||
```sh
|
||||
echo 'deb [trusted=yes] https://apt.fury.io/goreleaser/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list
|
||||
sudo apt update
|
||||
sudo apt install nfpm
|
||||
```
|
||||
|
||||
### yum
|
||||
|
||||
```sh
|
||||
echo '[goreleaser]
|
||||
name=GoReleaser
|
||||
baseurl=https://yum.fury.io/goreleaser/
|
||||
enabled=1
|
||||
gpgcheck=0' | sudo tee /etc/yum.repos.d/goreleaser.repo
|
||||
sudo yum install nfpm
|
||||
```
|
||||
|
||||
#### deb, apk and rpm packages
|
||||
|
||||
Download the `.deb`, `.rpm` or `.apk` from the [releases page][releases] and install them with the appropriate tools.
|
||||
|
||||
**shell script**:
|
||||
### shell script
|
||||
|
||||
```sh
|
||||
curl -sfL https://install.goreleaser.com/github.com/goreleaser/nfpm.sh | sh
|
||||
```
|
||||
|
||||
**go install**:
|
||||
### go install
|
||||
|
||||
```sh
|
||||
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
|
||||
```
|
||||
|
||||
**manually**:
|
||||
### Manually
|
||||
|
||||
Download the pre-compiled binaries from the [releases page][releases] and
|
||||
copy to the desired location.
|
||||
Download the pre-compiled binaries from the [releases page][releases] and copy them to the desired location.
|
||||
|
||||
## Running with Docker
|
||||
|
||||
|
@ -63,8 +84,7 @@ docker run --rm -v $PWD:/tmp/pkg goreleaser/nfpm package \
|
|||
|
||||
Here you have two options:
|
||||
|
||||
If you want to contribute to the project, please follow the
|
||||
steps on our [contributing guide](/contributing).
|
||||
If you want to contribute to the project, please follow the steps on our [contributing guide](/contributing).
|
||||
|
||||
If you just want to build from source for whatever reason, follow these steps:
|
||||
|
||||
|
|
Loading…
Reference in New Issue