Back to Go Swagger

Install from distribution package

docs/install/install-distro.md

0.33.23.1 KB
Original Source

go-swagger packages for linux distributions are shipped courtesy of the CloudSmith service.

Installing from distribution package

{{<tabs "distroInstallType">}} {{< tab "Linux deb (Ubuntu, Debian)" >}}

Debian packages

This package will work for any Debian. The only file it contains gets copied to /usr/bin

  • Update and install prerequisite packages
sh
sudo apt update
sudo apt install -y apt-transport-https gnupg curl debian-keyring debian-archive-keyring
  • Register our GPG signing key and the repository source
sh
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
  • Install
sh
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):

sh
sudo apt remove swagger

{{</hint>}}

{{< /tab >}}

{{<tab "Linux rpm (CentOS, Fedora, Suse)" >}}

RPM packages

This package should work on any distro that wants RPM packages. The only file it contains gets copied to /usr/bin

  • Update and install prerequisite packages
sh
dnf install -y yum-utils
  • Register our GPG signing key
sh
rpm --import 'https://dl.cloudsmith.io/public/go-swagger/go-swagger/gpg.2F8CB673971B5C9E.key'
  • Install
sh
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):

sh
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 -->