You have three options when installing the Dragonfly client: installing from the latest package, installing from 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:
-
Linux 64-bit:
https://github.com/dragonflyoss/Dragonfly/releases/download/v0.4.3/df-client_0.4.3_linux_amd64.tar.gz -
MacOS 64-bit:
https://github.com/dragonflyoss/Dragonfly/releases/download/v0.4.3/df-client_0.4.3_darwin_amd64.tar.gz
-
-
Unzip the package.
# Replace `xxx` with the installation directory. tar -zxf df-client_0.4.3_linux_amd64.tar.gz -C xxx -
Add the directory of
df-clientto yourPATHenvironment variable to make sure you can directly usedfgetanddfdaemoncommand.# 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
dfdaemonanddfget.make build-client
-
Install
dfdaemonanddfgetin/opt/dragonfly/df-clientand create soft-link in/usr/local/bin.sudo make install-client
Test if the downloading works.
dfget --url "http://${resourceUrl}" --output ./resource.png --node "127.0.0.1:8002"