diff options
| author | rorka900 <rorka900@gmail.com> | 2026-04-24 17:53:49 +0300 |
|---|---|---|
| committer | rorka900 <rorka900@gmail.com> | 2026-04-24 17:53:49 +0300 |
| commit | 9c9ce088193c2506da372c76685076bbfead0690 (patch) | |
| tree | 8eacd30624a4d6da552f8de44a1e1273bfede3d4 /README.md | |
| parent | f2ab400fb6750fbe017309757f06339437b7c4b8 (diff) | |
| download | ror-9c9ce088193c2506da372c76685076bbfead0690.tar.gz ror-9c9ce088193c2506da372c76685076bbfead0690.zip | |
feat: modernize CLI with clap subcommands and add declarative apply1.0.0-r1
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 151 |
1 files changed, 1 insertions, 150 deletions
@@ -1,150 +1 @@ -# 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 - --up <GROUP> - --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 - --di <DELETE> <INSTALL> #will remove and install the package - --lg #displays a list of all groups - --check #package integrity check - -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: -urlrepo = "https: -``` - - - ---- - -## Package Format - -Packages are YAML files stored in the repository under `<category>/<n>/<n>.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/<n>.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 - └── <category>/ - └── <pkg>/ - └── <pkg>.yaml -``` +Documentation is not available for this version. Please wait for the release. |