Skip to content


You can install the pre-compiled binary (in several ways), use Docker or compile from source.

Bellow you can find the steps for each of them.

Install the pre-compiled binary

homebrew tap

brew install goreleaser/tap/nfpm


brew install nfpm


The formula in homebrew-core might be slightly outdated. Use our homebrew tap to always get the latest updates.


scoop bucket add goreleaser
scoop install nfpm


echo 'deb [trusted=yes] /' | sudo tee /etc/apt/sources.list.d/goreleaser.list
sudo apt update
sudo apt install nfpm


echo '[goreleaser]
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 and install them with the appropriate tools.

go install

go install


Download the pre-compiled binaries from the releases page and copy them to the desired location.

Verifying the artifacts


All artifacts are checksummed, and the checksum is signed with cosign.

  1. Download the files you want, the checksums.txt and checksums.txt.sig files from the releases page:
wget ''
  1. Verify the signature:
    cosign verify-blob \
     --certificate-identity '' \
        --certificate-oidc-issuer '' \
     --signature '' \
     --cert '' \
  2. If the signature is valid, you can then verify the SHA256 sums match with the downloaded binary:
    sha256sum --ignore-missing -c checksums.txt

docker images

Our Docker images are signed with cosign.

Verify the signature:

cosign verify goreleaser/nfpm
cosign verify

Running with Docker

You can also use it within a Docker container. To do that, you'll need to execute something more-or-less like the following:

docker run --rm -v $PWD:/tmp -w /tmp goreleaser/nfpm package \
    --config /tmp/pkg/foo.yml \
    --target /tmp \
    --packager deb

Packaging status

Packaging status

Compiling from source

Here you have two options:

If you want to contribute to the project, please follow the steps on our contributing guide.

If you just want to build from source for whatever reason, follow these steps:


git clone
cd nfpm

get the dependencies:

go mod tidy


go build -o nfpm ./cmd/nfpm

verify it works:

./nfpm --version