docs/src/installation.md
49 lines · 1706 bytes
1# Installation
2
3It's about download (or building) the binary and putting them in an easily accessible location (like `/bin/`).
4
5## Install from Crates.io (recommended)
6
7Crates.io is a repository for programs written in Rust, and the YouTube TUI is avaliable <a href="https://crates.io/crates/youtube-tui" target=_blank>*there*</a>.
8
9To install using this method, you will need `rustc` and `cargo` present. <a href="https://www.rust-lang.org/tools/install" target=_blank>*Here*</a>'s a tutorial on how to get them.
10
11Now, run the following command:
12
13```sh
14cargo install youtube-tui
15```
16
17> To check and update all programs installed from Crates.io, you can use CLI tools like <a href="https://crates.io/crates/cargo-update" target=_blank>*cargo-update*</a>.
18
19## AUR for Arch Linux (recommended)
20
21The YouTube TUI is avaliable in the AUR <a href="https://aur.archlinux.org/packages/youtube-tui-git" target=_blank>*here*</a>.
22
23Use an <a href="https://aur.archlinux.org" target=_blank>AUR</a> helper like <a href="https://aur.archlinux.org/packages/yay" target=_blank>`yay`</a> to install.
24
25```sh
26yay -S youtube-tui # replace `yay` with your AUR helper
27```
28
29## Download a compiled binary
30
31Download the compiled binary for your system from <a href="https://github.com/Siriusmart/youtube-tui/releases" target=_blank>*GitHub releases*</a> and manually place it in *a folder* (e.g. `~/.cargo/bin/` or `/bin/`)
32
33## Build from source
34
35Use the `cargo` command:
36
37```sh
38cargo install --git https://github.com/siriusmart/youtube-tui
39```
40
41### Confirm YouTube TUI has been installed
42
43Run the following command in terminal:
44
45```sh
46youtube-tui
47```
48
49If installed correctly, a TUI should be launched. Press `q` to close the TUI.