docs/install/install-distro.md
go-swagger packages for linux distributions are shipped courtesy of the CloudSmith service.
{{<tabs "distroInstallType">}} {{< tab "Linux deb (Ubuntu, Debian)" >}}
This package will work for any Debian. The only file it contains gets copied to /usr/bin
sudo apt update
sudo apt install -y apt-transport-https gnupg curl debian-keyring debian-archive-keyring
curl -1sLf 'https://dl.cloudsmith.io/public/go-swagger/go-swagger/gpg.2F8CB673971B5C9E.key' | sudo gpg --dearmor -o /usr/share/keyrings/go-swagger-go-swagger-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/go-swagger/go-swagger/config.deb.txt?distro=debian&codename=any-version' | sudo tee /etc/apt/sources.list.d/go-swagger-go-swagger.list
sudo apt update
sudo apt install go-swagger
{{<hint warning>}}
If you already had package swagger installed from a previous release, please remove it first (the package name has changed from swagger to go-swagger):
sudo apt remove swagger
{{</hint>}}
{{< /tab >}}
{{<tab "Linux rpm (CentOS, Fedora, Suse)" >}}
This package should work on any distro that wants RPM packages. The only file it contains gets copied to /usr/bin
dnf install -y yum-utils
rpm --import 'https://dl.cloudsmith.io/public/go-swagger/go-swagger/gpg.2F8CB673971B5C9E.key'
curl -1sLf 'https://dl.cloudsmith.io/public/go-swagger/go-swagger/config.rpm.txt?distro=fedora&codename=any-version' > /tmp/go-swagger-go-swagger.repo
dnf config-manager --add-repo '/tmp/go-swagger-go-swagger.repo'
dnf -q makecache -y --disablerepo='*' --enablerepo='go-swagger-go-swagger' --enablerepo='go-swagger-go-swagger-source'
dnf install -y go-swagger
{{<hint warning>}}
If you already had package swagger installed from a previous release, please remove it first (the package name has changed from swagger to go-swagger):
dnf remove swagger
{{</hint>}} {{</tab>}} {{</tabs>}}
{{<hint warning>}} At this moment, we do not support pre-packaged binaries for Windows and Alpine Linux. {{</hint>}}
<!-- TODO apk package for alpine --> <!-- TODO msi package for windows -->