# ror The package manager for RorkOS. Installs, removes, and updates binary packages from git-based repositories. ```sh --search #search -s, --sync #synchronizes the repository -d, --delete #removing a package -l, --list-installed #installed packages --info #package information -v, --version #package manager version -g, --gen-config #generating configuration for the package manager -i, --install ... #example: ror -i @base/bash --update #update one package --dry-run #simulates the execution of a command -u, --upgrade #updates the entire system --up --repo-add #adding a repository --repo-remove #deletes the repository --repo-list #list of repositories --build-rootfs #creates rootfs --rootfs-group #creates rootfs with group --rootfs-target #installs root force in a separate folder --rootfs-arch [default: native] #installs rootfs for a specific architecture --di #will remove and install the package --lg #displays a list of all groups -h, --help Print help ``` Config is located at `/var/ror/ror.conf`: ```ini [global] ignore_speed = false strict_gpg = false parallel_downloads = 4 [repositories.rorkos] url = "https: mirror = "https: ``` --- ## Package Format Packages are YAML files stored in the repository under `//.yaml`: ```yaml name: vim version: "9.1.0" main:rorka900 example @mail.com description: "Vi IMproved - enhanced vi editor" arch: "amd64, arm64" libc: "gm" #that is, support for Glibc and Musl. license: "Vim" homepage: "https://www.vim.org" provides: - editor depends: - "depends" - ["depends1", "depends2"] #choice of dependency conflicts: - vim-tiny #packet conflict binaries: - arch: amd64 type: ror filename: "vim-9.1.0-pkg-amd64-glibc-rorkos.ror" sha256: "" dict: https://example.com/pkg.dict mirrors: - "https://repo.example.com/packages/{filename}" #or - "rorkos" binaries: - arch: amd64 type: ror filename: "vim-9.1.0-pkg-amd64-glibc-rorkos.ror" sha256: "" dict: https://example.com/pkg.dict mirrors: - "https://repo.example.com/packages/{filename}" #or - "rorkos" install_steps: | update-alternatives --install /usr/bin/vi vi /usr/bin/vim 100 ``` --- Group files live at `/var/ror/packages/groups/.yaml`: ```yaml name: base description: "Minimal RorkOS base system" libc: m *thiss musl version: "r1" packages: - "musl" - "busybox" - "runit" - "ror" install_steps: | echo done ``` --- ## 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 └── / └── / └── .yaml ```