View Only
Expand all | Collapse all

Maintaining multiple version in the same AIX server

  • 1.  Maintaining multiple version in the same AIX server

    Posted Thu December 07, 2023 04:10 PM


       My client has specific requirements for running multiple python application on different versions. So, they would like to maintain different python binaries for each application. So, when upgrading any python of any application will not conflict with python used by other application, for example

    Python 3.11.6 - used by App A
    Python 3.11.5 - used by App B
    Python 3.9.18 - used by App C
    Python 3.8.18 - used by App D

       And all above are running in the same servers. Are we able to do that?




  • 2.  RE: Maintaining multiple version in the same AIX server

    Posted Sat December 09, 2023 04:55 AM

    Maintaining multiple versions on the same AIX (Advanced Interactive eXecutive) server involves managing different copies or releases of software or applications. Here's a simple explanation:

    1. Directories or Folders:

      • Create separate directories or folders for each version of the software you want to maintain on your AIX server. This keeps things organized.
    2. Naming Convention:

      • Use a clear naming convention for your directories, like adding version numbers. For example, have folders named "Version_1.0," "Version_2.0," and so on.
    3. Installation Paths:

      • When you install or update software, specify the installation path to the corresponding versioned directory. This ensures that each version has its own space.
    4. Environment Variables:

      • If needed, use environment variables or configuration settings to point to the specific version you want to use. This helps in controlling which version is active.

    Example: Suppose you have a software called "MyApp" with two versions, 1.0 and 2.0.

    • Create directories: /opt/MyApp/Version_1.0 and /opt/MyApp/Version_2.0.

    • Install version 1.0 in /opt/MyApp/Version_1.0 and version 2.0 in /opt/MyApp/Version_2.0.

    • Use environment variables or configuration settings to switch between versions if needed.

    This way, you can have multiple versions coexisting on the same AIX server without interfering with each other. It's especially useful for testing, development, or scenarios where different applications or users require specific software versions.

    soniya sharma

  • 3.  RE: Maintaining multiple version in the same AIX server

    Posted Mon December 11, 2023 09:24 AM

    Soniya gave one approach. There are various ways in Python to create "virtual environments" that may help here. Look into pipx as a more programmatic way to do what you want.

    Dave Marquardt
    Sr. Software Engineer
    Austin TX