Skip to main content
This guide walks you through the process of upgrading your Package Security Manager installation to a newer version. Package Security Manager supports in-place upgrades, meaning you can upgrade while the software is running.

Upgrade process

1

Verify system requirements

Ensure your environment meets the new version’s system requirements.
If upgrading your OS to RHEL 9, you must first switch from Docker to Podman.
2

Create backups

Create backups of the docker-compose.yml and .env files:
These contain your custom configurations and will be overwritten during the upgrade!
  1. Open a terminal.
  2. Log in to the server that hosts your Package Security Manager installation.
  3. Navigate to your Anaconda installer directory (ate-installer-*) by running the following command:
    Type “ate-installer-”, then press Tab to autocomplete the directory name.
  4. Create backups of your configuration files by running the following commands:
3

Verify service account permissions

If you are using Package Security Manager 6.1.6 or later, you can skip this step.
You must verify the correct permissions are set for the service account to prevent users from losing their assigned permissions:
  1. Log in to your Keycloak admin panel at https://<YOUR_DOMAIN>/auth/admin.
  2. Navigate to Clients and select repo-account-sync.
  3. Select the Service Account Roles tab.
  4. Open the Client Roles dropdown and select realm-management.
  5. Add manage-users and manage-realm to the Assigned Roles.
4

Download the installer

Download the installer using the URL provided by Anaconda:
5

Run the upgrade

Choose the appropriate command based on your setup:
If your setup uses HTTPS protocol, you’ll need to provide the TLS certificate and key in your installation command:
If your current version of Package Security Manager is utilizing Grafana, you must include the following argument in your upgrade. If you do not, you will lose access to your Grafana dashboards. Upgrading removes your previous version of Grafana.
Don’t forget to log in and update your password for your Grafana monitoring dashboards!
If you’re upgrading with Podman and you encounter an error similar to the following:
You can safely remove the existing containers and create new ones by running the following command from inside your ate-installer-* directory:
If your upgrade fails at this point, it is likely due to a permissions issue with your Redis cache. To complete the upgrade, reset permissions for your Redis cache and restart your containers by running the following commands:
6

Reapply configurations

If necessary, review the docker-compose.yml.backup and .env.backup files you created when you began the upgrade process, reapply your custom configurations to your new installations configuration files, and verify that your repo.conf (nginx configuration) file also reflects the upgraded changes.

Additional considerations