Package Manager =============== PytoRuntime provides a simple package manager through the ``pkg`` command and the :ref:`Swift APIs `. Packages are tarballs, gzipped or not and installed into the home directory. Package Registries ------------------ ``pkg`` fetches available packages from registries. A registry is just a JSON file containing a list of releases as such: .. code-block:: python [ { "name": "...", "version": "...", "url": "...", "dependencies": [ { "name": "...", "version": "...", } ] } ] They can be stored in an HTTP / HTTPS server and fetched with the ``update`` command. Command Line Usage ------------------ .. code-block:: text OVERVIEW: A package manager that installs packages into the home directory USAGE: pkg-main [--help] OPTIONS: -h, --help Show help information. SUBCOMMANDS: install Install a package into the home directory. upgrade Upgrade packages to their latest versions. remove Remove a package from the home directory. update Fetch and update the package registries. registry-add Add a package registry to the disk and fetch its content. registry-remove Remove one or more package registries from the disk. list List the packages available in the given registries. versions List the available versions of a package.