Skip to main content

A CLI package manager for mods

Project description

Portmod

pipeline Build status coverage PyPI Code style: black Supported Python versions Chat

A cross-platform cli package manager for mods. Based on Gentoo's Portage package manager.

Currently the only supported game is OpenMW, via the openmw-mods repository.

See the Wiki for details on Installation and Setup.

Features

  • Automatic Downloads (where possible): If direct links are available to mod archive files, portmod will fetch them automatically. As many mods have restrictive licenses and are distributed via sites which do not provide direct links, this is not always possible.
  • Automatic patching: Mods are organized into packages which contain both the base mod and any necessary patches. Patches can be configured (in the package) to only be installed when certain other packages are installed, so that all you need to do when installing packages is choose the ones you want and all necessary patches will be included automatically.
  • Automatic Configuration: Mod packages can declare optional features (called Use Flags), which can either be independently enabled/disabled (local flags), or enabled/disabled along with other packages which share the same feature (global flags).
  • Structure Awareness: Portmod's package files contain information about the directory structure of the archives which explain precisely how the mod should be installed.
  • Automatic sorting: The install order and the load order of plugin and fallback archive files are sorted automatically based on rules defined in the packages. These rules can be customized with user rules.
  • Automatic updates: When mod updates are released and new package files are created in the portmod repository, you can find and update all your installed mods using a single command. Due to portmod requiring more information than upstream sources usually provide, will be a delay after the upstream mod is updated while new package files are created.
  • Dependencies: Portmod will automatically install dependencies for the mods you ask it to install.
  • Mod collections: Portmod supports both metapackages (packages containing lists of other packages which are distributed in the repository), as well as custom package sets (easy to set-up package lists that exist in the user's configuration).

Basic Usage

There are a number of executables installed with Portmod, however for the most part you only need to use the omwmerge executable.

Mods can be installed by passing the relevant atoms as command line arguments. E.g.: omwmerge omwllf

You can search for mods using the --search/-s (searches name only) and --searchdesc/-S (searches name and description) options.

Specific versions of mods can be installed by including the version number: omwmerge abandoned-flat-2.0

Specified mods will be automatically be downloaded, configured and installed.

The -c/--depclean flag will remove the specified mods and all mods that depend on, or are dependencies of, the specified mods.

The -C/--unmerge flag will remove the specified mods, ignoring dependencies

You can view useful information about your current setup using omwmerge --info.

You can update all installed mods (including dependencies and dependency changes) using the command omwmerge --update --deep --newuse @world (or omwmerge -uDN @world)

After updates, you should clean unneeded dependencies using omwmerge --depclean (without any arguments). This can also be done during updates using the --auto-depclean/-x flag, however you should carefully examine the transaction list to make sure that it isn't removing anything you wanted to keep.

Future Plans

This list is updated infrequently. See the Issues for up-to-date information.

  • Support for other game engines and multiple games: Support for other engines is already feasible (portmod's implementation is fairly generic), but restricted by the lack of support for installing into a single data directory. Currently games must support per-mod data directories. There is also not yet a way to distinguish between mods installed for different game engines.
  • Mod packaging and submission: Support for build files being distributed with mods and automatically submitted to a repository using a cli tool.

Communication

Release announcements and other major news will be posted to the announcement mailing list). This list is read-only (see below for the list you can contact).

There are a number of ways to communicate with the developers and with other users:

Packaging status

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

portmod-2.0b9.tar.gz (166.5 kB view hashes)

Uploaded Source

Built Distributions

portmod-2.0b9-cp38-cp38-win_amd64.whl (859.4 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

portmod-2.0b9-cp38-cp38-manylinux1_x86_64.whl (939.9 kB view hashes)

Uploaded CPython 3.8

portmod-2.0b9-cp38-cp38-macosx_10_15_x86_64.whl (894.5 kB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

portmod-2.0b9-cp37-cp37m-win_amd64.whl (859.3 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

portmod-2.0b9-cp37-cp37m-manylinux1_x86_64.whl (939.8 kB view hashes)

Uploaded CPython 3.7m

portmod-2.0b9-cp37-cp37m-macosx_10_15_x86_64.whl (894.6 kB view hashes)

Uploaded CPython 3.7m macOS 10.15+ x86-64

portmod-2.0b9-cp36-cp36m-win_amd64.whl (859.7 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

portmod-2.0b9-cp36-cp36m-manylinux1_x86_64.whl (940.0 kB view hashes)

Uploaded CPython 3.6m

portmod-2.0b9-cp36-cp36m-macosx_10_15_x86_64.whl (894.9 kB view hashes)

Uploaded CPython 3.6m macOS 10.15+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page