From 0ea37d298667c5639a2978e94bd5facec32805fc Mon Sep 17 00:00:00 2001 From: Rorka900 Date: Thu, 19 Mar 2026 12:31:38 +0000 Subject: Enhance README with usage and package format details Expanded README with detailed usage instructions, package format, and root filesystem building steps. --- README.md | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 127 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index c57a0f6..9bd55a2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,128 @@ # ror -The package manager for RorkOS. + +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 + --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 + -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 `//.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/.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 + +``` +/var/ror/ +├── ror.conf # config +├── installed.json # installed package database +└── packages/ + ├── groups/ # group definitions + └── / + └── / + └── .yaml +``` -- cgit v1.2.3