Log in, log out, and install the program

Installing the program

To install the client automatically, use the command for quick package installation.

Example of quick .deb package installation
echo "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" | sudo tee -a /etc/apt/sources.list.d/yandex-disk.list > /dev/null && wget http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG -O- | sudo apt-key add - && sudo apt-get update && sudo apt-get install -y yandex-disk

To install the client manually, download the appropriate version of the package from the corresponding link below.

Package format 32-bit 64-bit
.deb (Ubuntu, Debian) yandex-disk_latest_i386 yandex-disk_latest_amd64
.rpm (Fedora, Red Hat Enterprise Linux, CentOS) yandex-disk-latest.i386 yandex-disk-latest.x86_64
Attention. By downloading the software, you agree to the terms of the License Agreement.
Example of installation using the dpkg package manager
# dpkg -i yandex-disk_0.1.0.103_i386.deb
Note. The repository is automatically installed at /etc/apt/sources.list.d/yandex.list
Example of installation using the rpm package manager
# rpm -ivh yandex-disk-
Note. The repository is automatically installed to /etc/yum.repos.d/yandex.repo

You can also add the repository containing the yandex-disk package to the list of available package manager repositories and install the package using the apt-get or yum utilities.

Installation using apt-get
Attention. Save a copy of the file /etc/apt/sources.list.d/yandex.list before making changes to it.
# wget -O YANDEX-DISK-KEY.GPG http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG
# apt-key add YANDEX-DISK-KEY.GPG
# echo "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" >> /etc/apt/sources.list.d/yandex-disk.list
# apt-get update
# apt-get install yandex-disk
Installation using yum
# nano /etc/yum.repos.d/yandex.repo
# rpm --import http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG
# yum install yandex-disk

yandex.repo contents:


Setup wizard

You can run the initial client setup using the setup command.

$ yandex-disk setup
  1. Enter the name of the directory where the local copy of Yandex.Disk is stored. If you leave the name blank, a Yandex.Disk folder will be created in the home directory.
  2. Indicate whether or not to use a proxy server (y/n).
  3. Indicate whether or not to launch the client at startup (y/n).

When the wizard finishes, the config.cfg configuration file is created in the ~/.config/yandex-disk directory.

Log in to Yandex.Disk

To log in to Yandex.Disk, use the token command.

When entering the command, you can specify the file name for the token and the path to it (FILE). If no additional options are specified, the file passwd will be created in the directory ~/.config/yandex-disk to store the token.
$ yandex-disk token [FILE]
You don't need to enter your username and password in the client. After calling the command, Yandex.Disk will ask you to open a certain page in the browser and enter your unique code there.
Note. Before entering the code, make sure you are logged in to the browser under the correct account.

Restore Yandex.Disk

To restore Yandex.Disk after reinstalling your operating system, replacing a hard drive, or deleting the program:

  1. Configure the client. If you still have any old Yandex.Disk files on your computer, they will automatically sync with the server.