Side-by-side installation

On this page 7

Side-by-side installation is the practice of installing two or more versions of the same software on one computer so that they coexist without overwriting each other, with each version keeping its own files, libraries and configuration. In the field of Installation & packages, it is the main answer to a recurring conflict in software: one application needs an older runtime or library while another needs a newer one.

The approach is used for language runtimes, database engines, office suites, browsers, development toolchains and shared system libraries. It works only when the software and its installer are designed for it, because version isolation must cover installation paths, registry or configuration keys, file associations, services and network ports.

How side-by-side installation isolates versions

A side-by-side installation separates versions by giving each one a distinct installation location and a distinct identity that the operating system and other programs can address. Instead of a single folder such as a generic program directory, each version lives in a versioned path, and shared components are stored under names that include the version number.

Isolation has to extend beyond files. The installer must also keep per-version configuration, avoid claiming the same service name or TCP port, and decide which version owns global integration points such as the command-line PATH, file type associations and default handlers. When two versions compete for one of these global integration points, only one can win, so the installer either asks the user or follows a documented precedence rule.

The table below lists the main layers that must be isolated and the typical mechanism used for each layer.

LayerTypical isolation mechanismConflict if not isolated
Program filesVersioned directory per releaseNewer files overwrite older ones
Shared librariesVersioned file names or a component storeApplications load the wrong library
ConfigurationSeparate settings folder or registry keySettings become incompatible
Services and portsUnique service names and port numbersSecond instance fails to start
Command-line accessVersion manager, shims or explicit pathsWrong version runs from a terminal
Layers that require isolation

Technical approaches across operating systems

Each platform offers its own coexistence mechanisms, and the term is used most formally on Windows. The Windows side-by-side assembly store (WinSxS) holds several versions of system components such as the Visual C++ runtime, and an application manifest states which exact version the application binds to. This design was introduced to end the era of overwritten shared DLLs.

On Linux and other Unix-like systems, shared library versioning through the soname lets libfoo.so.1 and libfoo.so.2 coexist, while the update-alternatives system selects a default command among installed versions. On macOS, frameworks can contain several versions inside one bundle. Runtime ecosystems add their own tools: the .NET runtime installs each major version in its own folder, and version managers such as pyenv, nvm or SDKMAN switch between interpreters per project.

The following table compares common mechanisms by platform and scope.

MechanismPlatformScope of isolation
WinSxS and manifestsWindowsSystem components and shared DLLs
Library soname versioningLinux and Unix-like systemsShared libraries
Alternatives systemDebian, Fedora and derivativesDefault command selection
Versioned runtime folders.NET, Java, Python installersEntire language runtimes
Version managersCross-platformPer-user or per-project runtime choice
Containers and sandboxesCross-platformWhole application environment
Common side-by-side mechanisms

Side-by-side installation differs from an in-place upgrade, which replaces the previous version, and from neighboring concepts in the same topic. A portable application achieves coexistence by avoiding system integration altogether, while an application sandbox or container isolates the entire environment rather than only the versioned components.

ModelOld version after installMain advantageMain cost
Side-by-side installationRemains usableControlled coexistenceMore disk space and integration rules
In-place upgradeReplacedSimple maintenanceNo quick rollback
Portable applicationRemains in its own folderNo system changesWeak OS integration
Containerized deploymentRuns in a separate imageFull environment isolationRuntime overhead and tooling
Side-by-side installation compared with neighboring models

The models are often combined. A developer can keep two database engines side by side on a workstation for testing, while production servers run each version in its own container with pinned dependency versions.

When to choose side-by-side installation

Side-by-side installation is justified when compatibility requirements diverge across applications or projects that must run on the same machine. It is also a standard migration and rollback strategy: the new version is installed next to the old one, tested, and the old one is removed only after verification.

SituationRecommended approachReason
Legacy application needs old runtimeKeep old runtime side by sideAvoids breaking the legacy application
Testing an upgradeInstall new version next to current oneAllows comparison and quick rollback
Multiple projects with different toolchainsUse a version managerSwitches versions per project
Single application, no compatibility issueIn-place upgradeLess complexity and disk usage
Strict reproducibility requiredContainers with pinned versionsIsolates the full dependency tree
Decision guide

Administrators should document which version is the default and which applications depend on each installed version. Without that record, cleanup becomes risky, because removing a version that looks unused can silently break a scheduled job or a line-of-business tool.

Limitations and common mistakes

The approach solves version conflicts but introduces operational overhead. Each retained version consumes disk space, needs security patches and widens the attack surface, so an unpatched older version left in place is a frequent audit finding.

  • Ambiguous defaults: a terminal or script runs a different version than the developer expects because PATH order changed.
  • Shared configuration collisions: two versions read the same user settings file and corrupt it with incompatible formats.
  • Port and service clashes: a second database server fails to start because the first one already uses the default port.
  • Orphaned versions: an uninstaller removes the main application but leaves old runtimes that nobody maintains.
  • Unsupported software: some products simply do not support coexistence, and forcing it leads to undefined behavior.

A disciplined practice is to treat every retained version as a managed asset with an owner and an end date, and to remove it once no dependent application remains.

Stripped to the essentials

Side-by-side installation means keeping two versions of the same program on one computer at the same time. Each version gets its own folder and its own settings, so installing the new one does not erase the old one.

Think of two editions of a cookbook on one shelf. One recipe works only with the old edition, another only with the new one, so you keep both. The only rule is to label them clearly so you always grab the right one. The key benefit is compatibility without forced upgrades.

Where it is applied

A finance department runs an internal reporting tool that was built for an older Python 3.8 runtime, while the data science team on the same analysis server needs Python 3.12 for new libraries. Upgrading the single installed interpreter would break the reporting tool before its month-end run.

The administrator installs Python 3.12 side by side with Python 3.8, each in a versioned directory, and configures the reporting job to call the 3.8 interpreter by its full path. Data scientists select 3.12 through virtual environments created from the new interpreter. Both workloads continue without interruption, and the team schedules the removal of Python 3.8 after the reporting tool is ported, with the old version patched and documented until that date.