Files
dcr/docs-crowdin-export/ru-RU/docs/getting-started/installation.mdx.mdx
2026-07-18 20:12:15 +08:00

110 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
sidebar_label: Установка
---
# Установка
## Linux (Dexoron Packages)
Настройте менеджер пакетов на https://pkg.dexoron.su и установите:
**Arch Linux**
```sh
sudo pacman -Sy dcr
```
**Debian/Ubuntu**
```sh
sudo apt update && sudo apt install dcr
```
**Fedora/RHEL**
```sh
sudo dnf install dcr
```
## Arch Linux (AUR)
```sh
ура -S dcr
```
## macOS / Linux (Homebrew)
```sh
brew tap dexoron/dexoron
brew install dcr
```
## Snap (Linux)
```sh
sudo snap install dcrup
```
## Nix (flake)
```sh
nix run github:dexoron/dcr
# или установить в профиль:
nix profile install github:dexoron/dcr
```
## Cargo (crates.io)
```sh
cargo install dcr
```
## Linux / macOS (скрипт)
```sh
curl -fsSL https://dcr.dexoron.su/install_bsd.sh | bash
```
## BSD (скрипт)
```sh
curl -fsSL https://dcr.dexoron.su/install.sh | bash
```
## Windows (PowerShell)
```powershell
irm https://dcr.dexoron.su/install.ps1 | iex
```
## Из источника
```sh
git clone https://github.com/dexoron/dcr.git
cd dcr && cargo build --release
ln -sf "$PWD/target/release/dcr" ~/.local/bin/dcr
```
## После установки
Проверьте установку:
```bash
dcr setup
```
После установки становятся доступны man страницы:
```bash
man dcr
man dcr-build
```
Чтобы использовать реестр, создайте файл `~/.dcr/config.toml`:
```toml
[registry.default]
url = "https://index.dcr.pm"
priority = 1
```