Skip to content

Minor upgrade of Percona Distribution for MongoDB

To receive bug fixes and feature enhancements that come with minor releases, keep your Percona Distribution for MongoDB upgraded to the latest version.

This document describes the upgrade from Percona repositories as the recommended method.

Before the upgrade, we recommend to back up your data in order to be on the safe side if anything goes wrong.

Prerequisites

  1. Update percona-release repository management tool to the latest version. This is required to install new version packages of Percona Distribution for MongoDB.

  2. Enable the repository

    If you installed Percona Distribution for MongoDB from the Major release repository, this step is optional. This repository automatically includes new version packages and you receive a prompt for an upgrade from the package manager of your operating system.

    If you installed Percona Distribution for MongoDB from the Minor release repository, you must enable the new version repository (for example, pdmdb-5.0.1) to upgrade. We recommend to use the setup subcommand:

    $ sudo percona-release setup pdmdb-6.0.2
    

Procedure

Run the following commands as root or by using the sudo command.

Stop the service

Stop Percona Server for MongoDB:

$ sudo systemctl mongod stop

Stop pbm-agent:

$ sudo systmectl pbm-agent stop

Install new version packages

Install a new version of Percona Distribution for MongoDB using the package manager of your operating system.

Restart the service

Start Percona Server for MongoDB:

$ sudo systemctl mongod start

Start pbm-agent:

$ sudo systmectl pbm-agent start

Get expert help

If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.


Last update: January 3, 2023
Created: December 9, 2022