This directory contains the installation script for DMT (Deckhouse Module Tool).
sh -c "$(curl -fsSL https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh)"sh -c "$(wget -qO- https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh)"sh -c "$(curl -fsSL https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh)" "" --version v1.0.0sh -c "$(curl -fsSL https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh)" "" --install-dir ~/binsh -c "$(curl -fsSL https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh)" "" --forcesh -c "$(curl -fsSL https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh)" "" --unattendedThe installer respects the following environment variables:
VERSION- Version to install (default: latest)INSTALL_DIR- Installation directory (default: /usr/local/bin)REPO- GitHub repository (default: deckhouse/dmt)FORCE- Force reinstall if already exists (yes/no)
VERSION=v1.0.0 INSTALL_DIR=~/bin sh -c "$(curl -fsSL https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh)"-
Download the script:
wget https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh
-
Make it executable:
chmod +x install.sh
-
Run the script:
./install.sh --version v1.0.0 --install-dir ~/bin
The installer supports the following platforms:
-
Linux
- amd64 (x86_64)
- arm64 (aarch64)
-
macOS
- amd64 (x86_64)
- arm64 (Apple Silicon)
The following tools must be available:
curlorwget- for downloading the binarytar- for extracting the archivesudo- for installing to system directories (if needed)
If you get a permission denied error, try:
-
Install to a user-writable directory:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh)" "" --install-dir ~/bin
-
Or use sudo:
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/deckhouse/dmt/main/tools/install.sh)"
If dmt is not found after installation, add the installation directory to your PATH:
# For bash/zsh
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# For custom installation directory
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcIf you see "Unsupported platform" error, you may need to build from source:
git clone https://github.com/deckhouse/dmt.git
cd dmt
go build -o dmt ./cmd/dmtTo uninstall DMT, simply remove the binary:
sudo rm /usr/local/bin/dmtOr if installed to a custom directory:
rm ~/bin/dmt