Linux
To install DCM on Linux, follow these steps:
Step 1: Add Package Repository​
First, you need to add the package repository to your system. Open your terminal and run the following commands:
sudo apt-get update
wget -qO- https://dcm.dev/pgp-key.public | sudo gpg --dearmor -o /usr/share/keyrings/dcm.gpg
echo 'deb [signed-by=/usr/share/keyrings/dcm.gpg arch=amd64] https://dcm.dev/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
Step 2: Install DCM​
After adding the repository, update your package list and install DCM by running:
sudo apt-get update
sudo apt-get install dcm
Step 3: Install a Specific Version​
If you need to install a specific version of DCM, specify the version number as follows:
sudo apt-get install dcm=1.18.1-1 # Where `-1` is a build number
Alternative Installation Method​
If you prefer to download the executable directly, you can get it as a Debian package from our GitHub repository. Download and install it using the following commands:
wget https://github.com/CQLabs/homebrew-dcm/releases/download/1.25.1/dcm_1.25.1-1_amd64.deb
sudo dpkg -i dcm_1.25.1-1_amd64.deb
Alternatively, you can download a .zip
archive with the executable from our GitHub repository: Download DCM from GitHub.
Ensure that the executable is added to your PATH. This allows you to run the dcm
command from any location in your terminal.
Next​
Once you are done, let's move on to next step to setup your IDE.