CKAN package install vs source install

Pick the Ubuntu package install, a source install or containers for CKAN based on who patches the stack, how extensions load and how upgrades will run.

On this page

CKAN package install vs source install: which path fits your portal?

The CKAN package install guide covers Ubuntu 20.04 and 22.04 64-bit, a source install gives you control over the Python, PostgreSQL, Solr, Redis and extension versions, and many teams now choose containers, so the path you pick decides who owns those versions. Make that choice before any data or configuration exists, because it also decides who patches CKAN, who manages its extensions and how hard a later move will be. A package install suits a team that wants the operating system to supply most of the stack, while a source install suits a team with the staff to pin and rebuild each component. Containers move the same version decisions into image tags and deployment files, so the questions in this section still apply.

Upgrades and patching are where the two paths differ most. With a package install, the timing of CKAN updates depends on what your Ubuntu release delivers, so confirm with your platform team how quickly fixes arrive and who applies them. With a source install, your team fetches each release, rebuilds the environment and owns every dependency patch. CKAN release policy states that the latest patch of the current minor version and the previous minor version receive fixes, that patch releases do not break backwards compatibility, and that minor releases may include backwards-incompatible changes, so plan one upgrade window per minor release. Extensions follow the same split: each must match your target CKAN version, and a source install lets you pin extension commits in a requirements file so that a rebuild is repeatable.

Decide before the first dataset or DataStore table exists. Moving a running portal to the other path means relocating PostgreSQL databases, the FileStore, the Solr index and configuration, and that move is effectively an upgrade with its own test window. Check the minimum versions first: source installs need Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, so confirm that your Ubuntu release or container base image can supply them. The CKAN install from source guide lists these requirements. Then write down the owners for operating system security updates, Solr and Redis versions, background workers and sign-off on each minor release, because those answers determine which path fits your portal.

Which install path fits your constraints?

The path starts with the operating system and team limits, then checks whether the deployment sits in an air-gapped or data center network, because that decides where packages and container images must come from. An existing container platform comes first. If there is none, the next gate is whether the target Ubuntu release appears in CKAN's package install guide. A listed release with no need for custom Python control leads to the package install. Custom extensions that need Python control, or a release the guide does not cover, lead to the source install. Every route meets the same checkpoint: confirm PostgreSQL 12 or newer, Solr 9 or 8, and Redis before you build.

Decision path from environment constraints to install path and service checkpoint.

CKAN package install vs source install: options side by side

This table compares the Ubuntu package install, a source install and a container path across operating system fit, the components each path leaves to you, extension handling, upgrades and release support. Cells beginning with Confirm are questions for the CKAN project or your own test environment. The main takeaway is that a source install gives the most control over component and extension versions, and that this control brings more patching and upgrade work for your team.

Decision pointUbuntu package installSource installContainer path
Operating system fitDocumented for Ubuntu 20.04 and 22.04 (64-bit). Confirm support for any other Ubuntu release with the CKAN project.Documented for other systems such as Red Hat, Fedora and CentOS. Confirm exact distribution versions in your test environment.Runs on any host with a supported container runtime. Confirm the base OS inside the image and the runtime your platform team supports.
Python, PostgreSQL, Solr and RedisThe package guide installs these on Ubuntu. Confirm which Python and PostgreSQL versions the packages supply and who patches them.You install and patch each one. Requirements are Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or 8, and Redis.Solr and Redis images can be tagged per CKAN version. Confirm which component versions each image bundles and how often images are rebuilt.
How extensions are addedInstalled into the CKAN environment on the server. Confirm how the package path handles extensions with their own Python dependencies.Installed into a Python environment your team manages. Check each extension's compatibility with your CKAN version before adding it.Added to an image built on top of the CKAN base, so each extension change produces a new image that you test and promote.
How upgrades runFollows the version the package delivers. Confirm which CKAN release the package provides and the upgrade steps for it.You move to a new release and reinstall. Patch releases do not break backwards compatibility, while minor releases may include breaking changes.You move to a new image tag and redeploy. Read the release notes first, since minor releases may include breaking changes.
Release support windowConfirm whether your package source delivers the latest patch of the current minor and the previous minor.CKAN supports the latest patch of the current minor and the previous minor. You choose when to take each patch.The same CKAN support window applies. Track which image tags remain supported and rebuild before an outdated patch loses support.
Best fitA single Ubuntu server on a supported release, with a small team that prefers OS-managed packages.Other Linux distributions, or teams that need control over Python versions and extension environments.Teams that already run containers and want the same image promoted through each environment.

How each path changes CKAN upgrades

The upgrade rhythm is set by CKAN's release policy, whichever install path you choose. CKAN targets about two minor releases a year, and the project supports the latest patch of the current minor and the previous minor. CKAN 2.12.0 was released on August 26, 2026, with maintenance releases 2.11.6 and 2.10.11 on the same day. Patch releases do not break backwards compatibility and leave out schema changes and new features, while minor releases may include backwards-incompatible changes. A move from 2.11 to 2.12 is therefore a planned project with its own testing, but a move within a patch line is normally a routine update. Outdated patch releases lose support once a newer patch is out, so a team that falls behind on patches is exposed even if it never changes minor version.

On the package path, your upgrade date depends on two timelines you do not control: when the package install guide and packages are updated for a new CKAN minor, and when your Ubuntu release reaches the end of its support. The package guide covers Ubuntu 20.04 and 22.04 64-bit, so confirm which Ubuntu release your target version is documented on before you commit to a date. Ask the CKAN team or your package maintainer how the package path receives CKAN version updates: whether new minors and patches arrive as packages, how long they take to appear after a release, and whether they change Python or Solr requirements. Until you have that answer, treat the package path's update timing as unknown and plan your upgrade calendar around the release policy.

On a source or container build, your own pipeline pins the CKAN version. A source install checks out a chosen release, and a container build references a chosen base image tag, so a new minor reaches production only when someone changes that pin, rebuilds and redeploys. You gain control over timing, but you also own the patch cadence: each 2.x.y maintenance release needs a rebuild and a redeploy inside your own change window. Under either path, every minor upgrade needs the same test set: extension compatibility with the new version, the release notes for backwards-incompatible changes, Python and Solr requirements, database migrations run against a copy of production, DataStore and XLoader jobs, search index behavior, and a tested rollback. Record the results before the production change is scheduled.

Which extensions and dependencies change with the install path

Four dependency groups change between the Ubuntu package install and a source install. Each card names the component, the version facts that matter, and who manages it under each path. Check these before choosing a path, because they decide what your team installs, patches and tests.

Python environment and extension requirements

A source install needs Python 3.10 or newer, and your team owns the interpreter, the virtual environment and the pip requirements for CKAN and each extension. Your team installs, pins and patches every Python package on a source install. The package install covers Ubuntu 20.04 and 22.04 64-bit, so confirm which Python version the package uses on your release and whether extensions go into its environment or a separate one. Check that each extension's Python dependencies resolve against your interpreter before any operating system upgrade.

Install from source guide

Solr and Redis placement

A source install requires Solr 9 (recommended) or Solr 8, plus Redis, and your team decides where they run: on the CKAN hosts, on separate servers or as containers. Docker images for Solr and Redis are tagged per CKAN version, which helps keep the search setup aligned with your CKAN release. Your team owns the search index and its schema on either path. With the package install, confirm which of these services the package configures for you, which you must provision yourself, and where the index data is stored.

Extension version support

Extensions carry their own CKAN version support, so your team checks compatibility before every upgrade. The ckanext-dcat extension is supported on CKAN 2.10 and 2.11, and ckanext-saml2auth on CKAN 2.10 and later. Confirm each extension's supported CKAN versions before you move to CKAN 2.12. On a source install, your team chooses, pins and tests extension versions. On the package install, confirm whether the package tracks extension updates or whether your team manages them separately.

ckanext-dcat repository

DataStore loader setup

The DataStore loads uploaded or linked files into its own PostgreSQL database, and the loader that does this is a dependency your team must configure. XLoader is the officially supported loader, while DataPusher is now legacy. Plan new setups around XLoader, including its worker and job queue. On a source install, your team installs XLoader, configures the DataStore database users and runs the worker. On the package install, confirm which loader the package sets up and whether XLoader needs separate installation.

DataStore docs

Source install setup for CKAN: sequence and checks

This sequence takes a team from a bare Linux host to a CKAN portal built from source, with its database, search, cache and web layers connected in a fixed order. Each step ends with a check you can run, so a fault shows up in the layer that caused it before the portal is opened to users.

  1. Confirm operating system and CKAN version

    The team that owns the host checks the operating system and the target CKAN version against the CKAN release policy before anything is installed. Choose a patch release on a minor version the policy still supports, because outdated patch releases lose support once a newer patch is out, and minor releases may include backwards-incompatible changes. If the host runs Ubuntu 20.04 or 22.04 and the team wants the package install, follow CKAN's package install guide for that release instead of this sequence. Check: the install record names one CKAN patch version and one operating system, and both appear as supported in the policy.

  2. Install Python, PostgreSQL, Redis and Solr

    The platform engineers install Python 3.10 or newer, PostgreSQL 12 or newer, Redis, and Solr 9, which the install documentation recommends, or Solr 8. They can use operating system packages or the Solr and Redis Docker images tagged for the CKAN version, and the Solr version must match the schema that version expects. Check: the Python version reports 3.10 or newer, the PostgreSQL server reports version 12 or newer when queried from a session, redis-cli ping returns PONG, and the Solr admin endpoint responds on its port.

  3. Create CKAN and DataStore databases and roles

    The database administrator creates one PostgreSQL database for CKAN and a separate database for the DataStore. Each database gets a write user that owns its objects, and the DataStore also gets a read-only user, which the Data API uses for SQL queries, so that role must not be able to write. Keep the two databases apart and grant the read-only role only what the DataStore permission setup requires. Check: each write user can log in to its own database, and the read-only user can select from a DataStore table but an insert attempt is refused.

  4. Install CKAN and extensions in a virtual environment

    The application engineer creates an isolated Python environment, installs CKAN from source at the chosen patch version, and then installs each extension at a version that declares support for that CKAN release. Pin every requirement so the environment can be rebuilt the same way later, and record extension versions next to the CKAN version in the install record. Compatibility is set per release, so an extension that worked on the previous version needs its own check. Check: the active interpreter is the one inside the new environment, pip show ckan reports the target patch version, and pip list shows each extension at its pinned version.

  5. Configure ckan.ini and initialize the databases

    The application engineer sets the site URL, the database connection strings, the Solr and Redis addresses, the secret values and the DataStore connection in ckan.ini. Keep secret values out of version control, and record where each setting lives. After the databases exist, run the database initialization command and the DataStore permission command from the install documentation so the read-only user receives the correct grants. Check: initialization finishes with no errors, and reading the file back shows the site URL and DataStore settings you wrote.

  6. Configure uWSGI and Nginx as documented

    The platform engineer runs CKAN under uWSGI and places Nginx in front of it as a reverse proxy, following the production setup the install documentation recommends. Set the Nginx upload size limit to match the maximum resource size in the CKAN configuration, or large uploads will fail before they reach the application. Serve static assets through Nginx and enable TLS as the documentation describes. Check: nginx -t reports a successful configuration, the uWSGI service restarts and stays up, and the Nginx access log records the test request.

  7. Verify the portal end to end

    The team tests the portal in the browser and through the API before handing it over. They create a test organization and dataset, add a small resource, and confirm the dataset appears in search, which shows the Solr index is being written. They then load a small CSV through XLoader, the supported loader, and run a datastore_search query. Background jobs such as XLoader need workers running, so confirm those are up first. Check: the home page loads over HTTPS, the package_list API action returns success, the test dataset appears in search results, and the DataStore query returns the rows that were loaded.

Security and operations on each install path

The two install paths differ mainly in who carries each layer of the stack after go-live. Each card below names one operational duty, who holds it on each path, and what to confirm in your own environment before you choose a path. Confirm these answers in writing with your partner or internal team.

Who patches the OS and runtimes

The package install relies on the Ubuntu release you run for the operating system, and your team still decides when to apply OS and Python updates on that host. A source install makes your team responsible for the Python 3.10 or newer interpreter, PostgreSQL 12 or newer, Solr 9 or 8, Redis and the web stack, including each security update and version move. Your team owns every runtime upgrade on a source install. Write down the owner and patch window for each component, and confirm whether your hosting provider or your own tooling applies OS updates.

Source install guide

Keeping CKAN on supported patches

CKAN targets about two minor releases a year, and the project supports the latest patch of the current minor version plus the previous minor version. An outdated patch loses support once a newer patch ships, so confirm which CKAN version your distribution packages provide before you rely on them. Patch releases do not break backwards compatibility and exclude schema changes, while minor releases may include incompatible changes. Assign one owner to track CKAN releases and schedule patch upgrades on either path.

Release policy

Secrets in ckan.ini and environment variables

On a package install, database URLs, DataStore connection strings and the session secret usually sit in the ckan.ini file on the host, so anyone with root access to that host can read them. On a source install, you choose whether those values stay in the file or move into environment variables, using a naming convention your team documents. Keep ckan.ini out of version control and restrict its file permissions. Confirm which keys hold credentials in your CKAN version, who can read the host, and how your secret manager injects values at deploy time.

DataStore write and read-only users

The DataStore keeps uploaded tabular data in a separate PostgreSQL database, and CKAN connects through two roles: a write user that loads data and a read-only user that serves Data API queries. The public read connection must use the read-only role, so queries cannot change rows. Confirm that both roles carry the permissions the DataStore documentation describes, that the write role is not a superuser, and that both install paths apply the same grants. Retest the grants after every upgrade.

DataStore docs

AGPL v3 obligations for modified code

CKAN is licensed under the GNU Affero General Public License v3.0. Whether your changes to CKAN or its extensions create source-sharing duties depends on how you run them and who interacts with them over a network. A source install makes it easier to patch core files, and a package install with local overrides can create the same changes. Ask counsel to confirm what you must publish for your modifications, and record every change you make to core and to extensions.

CKAN repository

Owners for backups and restore tests

Three stores need a named owner and a restore test: PostgreSQL for CKAN and the DataStore, the Solr index, and the FileStore holding uploaded resources and images. Confirm with your CKAN version whether rebuilding the Solr index from PostgreSQL is an accepted restore step before you depend on it. Name who takes each backup, where it is kept, how often a restore is tested, and who signs off that the restored portal works. Neither install path assigns these duties for you, so write them down before go-live.

Why many teams now choose containers for CKAN

Teams pick containers for CKAN mainly because the portal becomes a versioned artifact that can be built, tested and rebuilt the same way each time. A CKAN image can be pinned to one release, so the version in test is the version in production. Extensions, theme files and their Python requirements go into the build, which makes the portal reproducible from the same inputs. Solr and Redis can run from images tagged for each CKAN version, so search and cache components are versioned alongside the application. The practical payoff is promotion of the same image through test and production, with environment configuration as the main thing that differs between them.

Containers also add work that a package install does not carry. Someone has to own an image build pipeline that compiles extensions, runs their tests and publishes tagged images to a registry the client controls. Container orchestration, whether Docker Compose on one host or Kubernetes across a cluster, brings its own components to patch, monitor and back up. Pipeline maintenance, registry storage and platform upkeep recur, while the initial pipeline build is largely a one-time effort that grows with each extension added. Staff also need to understand how uploads and persistent storage behave in containers: files written to a container's own filesystem are lost when the container is replaced, so the FileStore must sit on a volume or shared storage. Ask any partner to quote these three items separately in the written scope.

Containers do not remove upgrade testing. A new CKAN patch or minor release still changes behavior, and minor releases may include backwards-incompatible changes, so extensions, the theme and the Solr setup must be tested against the new image before it reaches production. Pinning a tag makes the change visible, but it does not show whether a plugin still loads or whether search still behaves. Before choosing containers, confirm who owns the build pipeline, who manages storage and who runs the upgrade tests. Then read Running CKAN with ckan-docker in production for the single-host setup and Building CKAN Docker images with your extensions for the build side.

Limits to confirm before choosing a CKAN install path

Each limit below affects whether a package install, a source install or a container build fits your target CKAN version. Confirm every item against the release notes for that version, then repeat the check in your own test environment before you commit to an install path.

Ubuntu release coverage

The CKAN package install guide covers Ubuntu 20.04 and 22.04, both 64-bit. If your servers run another release, or another distribution such as Red Hat, Fedora or CentOS, plan a source install and confirm the operating system packages it needs. Check the OS in use against the install guide for your target version, because the guide's coverage can change between releases. Build a test server on the same release as production before you rely on either path.

Install from source guide

Python minimum for source installs

Source installs need Python 3.10 or newer. Confirm the interpreter version on each server before you create the virtual environment, and plan how you will provide a supported Python if the operating system release does not include one. Check the minimum in the release notes for your target version, since requirements can change from one release to the next. Record the interpreter path that your CKAN, uWSGI and worker services use so a later upgrade does not silently pick up a different Python.

PostgreSQL minimum and DataStore databases

Source installs need PostgreSQL 12 or newer. Confirm the server version on your database host or managed service, because CKAN and the DataStore each use their own PostgreSQL database. Plan the DataStore write user and read-only user during the install, since the DataStore expects both. Check the minimum against the release notes for your target version before you size the database server.

Solr version for search

Solr 9 is the recommended version for source installs, and Solr 8 is also supported. Choose the Solr version the target CKAN release documents, then confirm that the schema shipped with that CKAN version is the one your Solr core loads. Solr and Redis can run from Docker images tagged per CKAN version, which helps match the Solr release to the CKAN release. Test a full index rebuild in your environment before you change the Solr version in production.

Extension compatibility, one at a time

Check each extension against the target CKAN version one at a time, and record the result for each. The ckanext-dcat repository lists support for CKAN 2.10 and 2.11, so confirm whether a 2.12 target is covered before you plan around it. Look at each extension's declared requirements and open issues for the target version as well as its latest release. Test every extension in a staging instance with the target CKAN version before you change production.

ckanext-dcat repository

DataPusher is now legacy

DataPusher is now legacy, and XLoader is the officially supported tool for loading uploaded or linked files into the DataStore. Decide which loader you will run before you go live, and plan its background workers and any DataPusher settings you carry over from an older configuration. Confirm the loader status in the DataStore documentation for your target version, and test a representative large file in your own environment to see how the loader behaves under your load.

DataStore docs

What buyers ask about CKAN install effort and cost

What drives the cost of a CKAN package or source install?

Scope drives most of the cost, and the main inputs are operating system work, dependency count, extensions and data migration. A package install on Ubuntu 20.04 or 22.04, the releases the package guide covers, involves fewer manual decisions than a source install, where Python, PostgreSQL, Solr and Redis versions, service units and web server configuration are set by hand. Each extension adds configuration, testing and a compatibility check against your CKAN version. Migrating existing datasets, resources and users adds mapping, validation and reconciliation work. The test plan is a cost driver too, because login, search, DataStore and background job checks take effort to run and record. Ask the quote to list each extension, data source and environment separately so you can see what moves the price.

How long does a CKAN install take from start to finish?

Duration depends on the written scope, and no single timeline applies to every CKAN install. The steps that take longest are often outside CKAN itself: access approvals in your cloud account or data center, network routes between CKAN, Solr, PostgreSQL and Redis, and certificate and DNS work. The number of extensions, the volume of data to migrate and the number of environments, such as a test environment before production, also move the schedule. Your internal review and sign-off cycles add time as well. DeployOpen agrees timing in writing before work starts, so ask for a milestone plan that names the dependency each milestone waits on and the owner who signs off each stage.

What must we provide before a CKAN install can start?

Before work begins, you provide access, inputs and a decision-maker. The usual list has four parts:

  • Access to the cloud accounts, data centers or networks where CKAN will run, with the roles needed to create compute, storage and database resources.
  • Data sources, such as existing dataset exports, spreadsheets, harvest endpoints and the files to be loaded into the DataStore.
  • The extension list, with the version of each extension that must match your target CKAN release, plus any custom theme or code your team owns.
  • A named owner who makes decisions, approves the scope and signs off testing.

Access approvals are often the slowest item, so confirm them before the scope is final.

Can DeployOpen install CKAN from source and prove it works?

Yes, DeployOpen plans and implements both package and source installs inside your infrastructure, and both end with the same verification. A source install follows the official install guide, which asks for Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, with uWSGI and Nginx recommended for production. Verification should confirm that the site loads at its intended address, a sysadmin can log in, a test dataset can be created and then found through search, an uploaded resource is stored, DataStore queries return rows if you use them, and background jobs run. Confirm that the checks in the setup section pass after every change, so a package install and a source install are judged the same way. The install from source guide lists the component versions.

Do we need an upgrade retainer for CKAN minor releases?

A retainer is optional, but it matters most for minor releases. CKAN targets about two minor releases a year, and the tech team supports the latest patch of the current minor version and the previous minor version. Patch releases do not break backwards compatibility, but minor releases may include incompatible changes, so each minor upgrade needs testing of your extensions and theme. Once a newer patch ships, the older patch stops receiving fixes, so patch updates also need a routine. The release policy explains the support windows. If your team can test and schedule upgrades in house, you can plan them yourselves. If not, an upgrade retainer covers recurring upgrades, testing and documentation, and its scope is set in writing.

How is the price of a CKAN install quoted?

A quote follows from the written scope, because DeployOpen does not publish a price list. Most engagements are fixed scope, so scope, deliverables and timelines are agreed in writing before work starts. Ask the quote to show the components separately: platform build work covering operating system preparation and installation, each extension, data migration, the test plan, documentation and handover. Separate one-time work from recurring costs, such as a support or upgrade retainer. Infrastructure you run in your own accounts is a cost you pay directly to your providers, so ask the quote to say what it excludes. Finally, ask how changes to scope are priced and approved in writing, so you can compare proposals on the same basis.

How DeployOpen works on this

DeployOpen scopes CKAN package install vs source install as a written, fixed-scope engagement, with the install method chosen against your upgrade cadence, extension list and operating system. We build on the platform inside your own infrastructure and hand over documentation, configuration and runbooks your team can operate.

How we scope

  • Written scope names the CKAN version, operating system and install path, package or source.
  • Scope records every extension, such as ckanext-dcat or ckanext-saml2auth, with its supported CKAN version.
  • Scope sets the Python, PostgreSQL, Solr and Redis versions to match the CKAN release being installed.

How we build

  • Stand up a test environment first, then install CKAN, PostgreSQL, Solr, Redis, uWSGI and Nginx.
  • Configure DataStore with separate write and read-only database users, and load tabular resources with XLoader.
  • Test extension installs, search reindexing, file uploads and a patch update in staging before production.

How we hand over

  • Handover documents the installed versions, extension list, configuration files and the upgrade path your team will follow.
  • Runbooks cover patch releases, minor release checks, backups, Solr index rebuilds and worker restarts.
  • Deliverables are listed in the written scope, so you can check each one.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for your CKAN portal.
  • Patch releases lose support once a newer patch ships, so retainer updates should be scheduled promptly.
  • Minor releases may include backwards-incompatible changes, so extension compatibility is retested before each minor upgrade.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.