Installing Dragonfly Client

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.

Installing from the Latest Package

You can install from the latest packages we provided.

  1. Download a package of the client.

    1. cd $HOME
    2. # Replace ${package} with a package appropriate for your operating system and location
    3. wget ${package}

    Available packages:

    • If you’re in China:

      • Linux 64-bit: http://dragonfly-os.oss-cn-beijing.aliyuncs.com/df-client_0.2.0_linux_amd64.tar.gz

      • MacOS 64-bit: http://dragonfly-os.oss-cn-beijing.aliyuncs.com/df-client_0.2.0_darwin_amd64.tar.gz

    • If you’re not in China:

      • Linux 64-bit: https://github.com/dragonflyoss/Dragonfly/releases/download/v0.2.0/df-client_0.2.0_linux_amd64.tar.gz

      • MacOS 64-bit: https://github.com/dragonflyoss/Dragonfly/releases/download/v0.2.0/df-client_0.2.0_darwin_amd64.tar.gz

  2. Unzip the package.

    1. # Replace `xxx` with the installation directory.
    2. tar -zxf df-client_0.2.0_linux_amd64.tar.gz -C xxx
  3. Add the directory of df-client to your PATH environment variable to make sure you can directly use dfget and dfdaemon command.

    1. # Replace `xxx` with the installation directory.
    2. # Execute or add this line to ~/.bashrc
    3. export PATH=$PATH:xxx/df-client/

Installing from the Source Code

You can also install from the source code.

Note: You must have started Docker.

Installing in /opt/dragonfly/df-client

  1. Obtain the source code of Dragonfly.

    1. git clone https://github.com/dragonflyoss/Dragonfly.git
  2. Enter the target directory.

    1. cd Dragonfly
  3. Build dfdaemon and dfget.

    1. make build-client
  4. Install dfdaemon and dfget in /opt/dragonfly/df-client and create soft-link in /usr/local/bin.

    1. sudo make install

After this Task

Test if the downloading works.

  1. dfget --url "http://${resourceUrl}" --output ./resource.png --node "127.0.0.1"