tis-podman-cli icon

Podman

Paquet d'installation silencieuse pour Podman

6.1.4-4
Development
System and network
Development
System and network

  • package: tis-podman-cli
  • name: Podman
  • version: 6.1.4-4
  • categories: Development,System and network
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor: Red Hat Inc.
  • licence: opensource_free,cpe:/a:apache:license_2.0,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: podman,gvproxy,win-sshproxy
  • architecture: x64
  • signature_date:
  • size: 32.13 Mo
  • homepage : https://podman.io/

package           : tis-podman-cli
version           : 6.1.4-4
architecture      : x64
section           : base
priority          : optional
name              : Podman
categories        : Development,System and network
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : Podman is a daemonless, open-source tool for developing, managing and running OCI containers and pods.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://github.com/podman-container-tools/podman/releases
installed_size    : 
impacted_process  : podman,gvproxy,win-sshproxy
description_fr    : Podman est un outil open-source sans démon pour développer, gérer et exécuter des conteneurs OCI et des pods.
description_pl    : Podman to działające bez demona narzędzie open-source do tworzenia, zarządzania i uruchamiania kontenerów OCI oraz podów.
description_de    : Podman ist ein daemonloses Open-Source-Tool zum Entwickeln, Verwalten und Ausführen von OCI-Containern und Pods.
description_es    : Podman es una herramienta de código abierto sin demonio para desarrollar, gestionar y ejecutar contenedores OCI y pods.
description_pt    : O Podman é uma ferramenta de código aberto sem daemon para desenvolver, gerir e executar contentores OCI e pods.
description_it    : Podman è uno strumento open-source senza demone per sviluppare, gestire ed eseguire container OCI e pod.
description_nl    : Podman is een open-source tool zonder daemon voor het ontwikkelen, beheren en uitvoeren van OCI-containers en pods.
description_ru    : Podman представляет собой инструмент с открытым исходным кодом, работающий без демона, для разработки, управления и запуска OCI-контейнеров и подов.
audit_schedule    : 
editor            : Red Hat Inc.
keywords          : podman,containers,pods,oci,cli
licence           : opensource_free,cpe:/a:apache:license_2.0,wapt_public
homepage          : https://podman.io/
package_uuid      : ffda9c58-ca1c-47ee-a167-d24f0e66f628
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/podman-container-tools/podman/releases
min_os_version    : 10.0.22000
max_os_version    : 
icon_sha256sum    : f457e972a6782b75c31b9329a2ea50a0043341dae1d9a3aaa608dc17ddec967b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-10-19T21:50:15.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : GSHD0VxwrNhF7n0/t/y+e4NCgoqK2gY0t4ar3POv72GxPHkg2MJ9UczWuVXmZm39wYyzkbQfxLCO7PJxzY3AnBzgmAKtlh2Zs9VG0miottaQunZFcT8jlUlOq36s+EAX2E8mb+j4zZyRpoyeK8dHrpstB3FM8TPTPSbDtZH0RrEoBV9sc0fVkd23gxl5/MCzrzIUQ5Wj2RzlgTd8kofmXYRJP5WwnWShYl5xVGy6wTx4XjOGAH3pjn/GVJSuTvyvZ13+mdzf26qerZvMaRkkv7LazyGMxjV/t91q/TeBFCxLULP9r30ts40cscPcqvBPMU54Rrle7Zlarx9sR6cBtA==

# -*- coding: utf-8 -*-
from setuphelpers import *

app_name = "podman"
app_dir = makepath(programfiles, app_name)
app_bin_dir = makepath(app_dir, "usr", "bin")
app_path = makepath(app_bin_dir, "podman.exe")


def get_installed_version():
    # podman.exe has no version resource, --version returns "podman version <version>"
    return run(f'"{app_path}" --version').split()[-1] if isfile(app_path) else ""


def install():
    bin_name = glob.glob("podman-remote-release-windows_amd64.zip")[0]
    installed_version = get_installed_version()

    # Uninstall older version before new one
    if installed_version and Version(installed_version) < Version(control.get_software_version()):
        uninstall()

    # Remove the versioned folders left by older package revisions
    for old_dir in glob.glob(makepath(programfiles, "podman-*")):
        remove_tree(old_dir)

    killalltasks(ensure_list(control.impacted_process))
    print(f"Extracting: {bin_name} to: {app_name}")
    unzip(bin_name, app_name)
    unzipped_dir = makepath(app_name, f"podman-{control.get_software_version()}")
    mkdirs(app_dir)
    print(f"Copying: {unzipped_dir} to: {app_dir}")
    copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)

    add_to_system_path(app_bin_dir)


def audit():
    audit_status = "OK"
    installed_version = get_installed_version()
    if Version(installed_version) < Version(control.get_software_version()):
        print(f"{app_name} is installed in version ({installed_version}) instead of ({control.get_software_version()})")
        audit_status = "WARNING"
    elif isdir(app_dir) and not dir_is_empty(app_dir):
        print(f"{app_name} ({installed_version}) is installed")
        audit_status = "OK"
    else:
        print(f"{app_name} is not installed")
        audit_status = "ERROR"
    return audit_status


def uninstall():
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir):
        remove_tree(app_dir)
    remove_from_system_path(app_bin_dir)

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *


def update_package():
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    api_url = "https://api.github.com/repos/podman-container-tools/podman/releases/latest"
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    version = json_load["tag_name"].replace("v", "")

    os_dict = {
        "windows-x64": "podman-remote-release-windows_amd64.zip",
        "windows-arm64": "podman-remote-release-windows_arm64.zip",
        "debian_based-x64": "podman-remote-static-linux_amd64.tar.gz",
        "debian_based-arm64": "podman-remote-static-linux_arm64.tar.gz",
        "darwin-arm": "podman-installer-macos-arm64.pkg",
    }
    os_type = control.target_os.split("(")[0] + "-" + ensure_list(control.architecture)[0]

    print(f"Latest {app_name} version is: {version}")

    for to_download in json_load["assets"]:
        if to_download["name"].endswith(os_dict[os_type]):
            download_url = to_download["browser_download_url"]
            latest_bin = to_download["name"]
            latest_bin_extension = latest_bin.rsplit(".", 1)[-1]
            break

    if isfile(latest_bin):
        remove_file(latest_bin)
    print(f"Downloading: {latest_bin}")
    wget(download_url, latest_bin, proxies=proxies)
    print(f"Binary is present: {latest_bin}")

    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f"*.{latest_bin_extension}"):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
50a7dd23608a42c46e3ed23a07e7809906bf0e844544048225d2cd11f4a7f274 : WAPT/control
f457e972a6782b75c31b9329a2ea50a0043341dae1d9a3aaa608dc17ddec967b : WAPT/icon.png
7f7b0cb0dd87a3667ef98070f69c6385f5fe733bf6d08303ad61cb34a14eefcb : luti.json
8b70cd2511bfac9b65e58858d8fe54eeb68e3420eeb600e3f869b9a4b8576572 : podman-remote-release-windows_amd64.zip
85dc9669788043d7a53a452998446b7891bce3c2c34154b8c987e76aecd91be3 : setup.py
7d50b67b08759b913ba4098dc3ad07b6f0bdf52ab634631061b257c52a2f7b03 : update_package.py