You have three options when installing the Dragonfly client: installing from the latest package, installing by pulling the image, or installing from the source code.
You can install from the latest packages we provided.
-
Download a package of the client.
cd $HOME # Replace ${package} with a package appropriate for your operating system and location wget ${package}
Available packages:
-
If you're in China:
-
Linux 64-bit:
http://dragonflyoss.oss-cn-hangzhou.aliyuncs.com/df-client_0.3.0_linux_amd64.tar.gz
-
MacOS 64-bit:
http://dragonflyoss.oss-cn-hangzhou.aliyuncs.com/df-client_0.3.0_darwin_amd64.tar.gz
-
-
If you're not in China:
-
Linux 64-bit:
https://github.com/dragonflyoss/Dragonfly/releases/download/v0.3.0/df-client_0.3.0_linux_amd64.tar.gz
-
MacOS 64-bit:
https://github.com/dragonflyoss/Dragonfly/releases/download/v0.3.0/df-client_0.3.0_darwin_amd64.tar.gz
-
-
-
Unzip the package.
# Replace `xxx` with the installation directory. tar -zxf df-client_0.3.0_linux_amd64.tar.gz -C xxx
-
Add the directory of
df-client
to yourPATH
environment variable to make sure you can directly usedfget
anddfdaemon
command.# Replace `xxx` with the installation directory. # Execute or add this line to ~/.bashrc export PATH=$PATH:xxx/df-client/
You can also install from the source code.
Note: You must have started Docker.
-
Obtain the source code of Dragonfly.
git clone https://github.com/dragonflyoss/Dragonfly.git
-
Enter the target directory.
cd Dragonfly
-
Build
dfdaemon
anddfget
.make build-client
-
Install
dfdaemon
anddfget
in/opt/dragonfly/df-client
and create soft-link in/usr/local/bin
.sudo make install
Test if the downloading works.
```sh
dfget --url "http://${resourceUrl}" --output ./resource.png --node "127.0.0.1"
```