1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# ror
The package manager for RorkOS. Installs, removes, and updates binary packages from git-based repositories.
```sh
--search <QUERY> #search
-s, --sync #synchronizes the repository
-d, --delete <PACKAGE> #removing a package
-l, --list-installed #installed packages
--info <PACKAGE> #package information
-v, --version #package manager version
-g, --gen-config #generating configuration for the package manager
-i, --install <PACKAGE_OR_GROUP>... #example: ror -i @base/bash
--update <PACKAGE> #update one package
--dry-run #simulates the execution of a command
-u, --upgrade #updates the entire system
--repo-add <NAME> <URL>#adding a repository
--repo-remove <NAME> #deletes the repository
--repo-list #list of repositories
--build-rootfs #creates rootfs
--rootfs-group <GROUP> #creates rootfs with group
--rootfs-target <TARGET>#installs root force in a separate folder
--rootfs-arch <ROOTFS_ARCH> [default: native] #installs rootfs for a specific architecture
-h, --help Print help
```
Config is located at `/var/ror/ror.conf`:
```ini
[global]
ignore_speed = false
strict_gpg = false
[repositories.rorkos]
url = "https:
mirror = "https:
```
---
## Package Format
Packages are YAML files stored in the repository under `<category>/<n>/<n>.yaml`:
```yaml
name: vim
version: "9.1.0"
description: "Vi IMproved - enhanced vi editor"
license: "Vim"
homepage: "https://www.vim.org"
provides:
- editor
depends:
- "libncurses"
- ["glibc", "musl"] #choice of dependency
conflicts:
- vim-tiny #packet conflict
binaries:
- arch: amd64
type: tar.gz
filename: "vim-9.1.0-pkg-amd64-rorkos.tar.gz"
sha256: ""
mirrors:
- "https://repo.example.com/packages/{filename}"
install_steps: |
update-alternatives --install /usr/bin/vi vi /usr/bin/vim 100
delete_steps: |
update-alternatives --remove vi /usr/bin/vim
```
---
Group files live at `/var/ror/packages/groups/<n>.yaml`:
```yaml
name: base
description: "Minimal RorkOS base system"
packages:
- "musl"
- "busybox"
- "runit"
- "ror"
```
---
## Building a Rootfs
```sh
ror --build-rootfs \
--rootfs-group base \
--rootfs-target /mnt/rootfs \
--rootfs-arch amd64
```
Installs all packages from the group into an empty directory, then runs each package's `install_steps` inside a chroot.
---
## Debug
```sh
ROR_DEBUG=1 ror -i curl
```
---
## File Structure
```
/etc/ror/
├── ror.conf # config
├── installed.json # installed package database
/var/ror/packages/
├── groups/ # group definitions
└── <category>/
└── <pkg>/
└── <pkg>.yaml
```
|