Installing Sealos
You can get the list of versions by running:
curl --silent "https://api.github.com/repos/labring/sealos/releases" | jq -r '.[].tag_name'
Note: While choosing the version, it's recommended to use a stable version. The versions like v4.3.0-rcx
, v4.3.0-alpha1
are pre-releases, use them with caution.
Set the 'VERSION' environment variable to the latest VERSION number, or replace 'version' with the Sealos version you want to install:
VERSION=`curl -s https://api.github.com/repos/labring/sealos/releases/latest | grep -oE '"tag_name": "[^"]+"' | head -n1 | cut -d'"' -f4`
Binary Auto Download
curl -sfL https://raw.githubusercontent.com/labring/sealos/${VERSION}/scripts/install.sh |
sh -s ${VERSION} labring/sealos
Binary Manual Download
- amd64
- arm64
$ wget https://github.com/labring/sealos/releases/download/${VERSION}/sealos_${VERSION#v}_linux_amd64.tar.gz \
&& tar zxvf sealos_${VERSION#v}_linux_amd64.tar.gz sealos && chmod +x sealos && mv sealos /usr/bin
$ wget https://github.com/labring/sealos/releases/download/${VERSION}/sealos_${VERSION#v}_linux_arm64.tar.gz \
&& tar zxvf sealos_${VERSION#v}_linux_arm64.tar.gz sealos && chmod +x sealos && mv sealos /usr/bin
Package Management Tool Installation
DEB Repository
echo "deb [trusted=yes] https://apt.fury.io/labring/ /" | sudo tee /etc/apt/sources.list.d/labring.list
sudo apt update
sudo apt install sealos
RPM Repository
sudo cat > /etc/yum.repos.d/labring.repo << EOF
[fury]
name=labring Yum Repo
baseurl=https://yum.fury.io/labring/
enabled=1
gpgcheck=0
EOF
sudo yum clean all
sudo yum install sealos
Source Code Installation
Prerequisites
linux
git
golang
1.20+libgpgme-dev libbtrfs-dev libdevmapper-dev
If you are in an arm64
environment, add the :arm64
suffix.
Build
# git clone the repo
git clone https://github.com/labring/sealos.git
# just make it
make build BINS=sealos