tis-podman-cli icon

Podman

Silent install package for Podman

6.2.0-2
Development
System and network
Development
System and network

  • package: tis-podman-cli
  • name: Podman
  • version: 6.2.0-2
  • 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: debian_based
  • impacted_process: podman
  • architecture: x64
  • signature_date:
  • size: 24.25 Mo
  • homepage : https://podman.io/

package           : tis-podman-cli
version           : 6.2.0-2
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         : debian_based
min_wapt_version  : 2.3
sources           : https://github.com/podman-container-tools/podman/releases
installed_size    : 
impacted_process  : podman
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      : 088b9c79-44ca-4d50-91dd-c6d7407f8d15
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/podman-container-tools/podman/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : f457e972a6782b75c31b9329a2ea50a0043341dae1d9a3aaa608dc17ddec967b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-11-17T15:11:55.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         : O5+Ljwt8gz0UDX8UOc6uYhK3DVATXDJBVyjo4xQwHR7Gotco8MlJ9YOgmCTEe2y4CiVOVx66dF+NY7Axsqo+6aiTumLC2rv7znbyt4sMhdDcDRMlgYUs4Ou7aWxnfJBc74ZRP3P+4u/XtzpM9kFlZTZhCUaLlbfzkspJ/NykUtVELXMq73jyC8+LPhDwe/MYGyNP1lBwR/HwQKudw+A/3gy2kRqBKKaheFqRYfTjlGvqPLzjdrBYguFOdZfdFbrJsAL88756rBe9M+o6cUqHaCXNtQnP/6/jUMbPyCuLbzKplvkeaq7AZrfPQO4u5bQjp87HZYQuPMXQ3b4SviBpTw==

# -*- coding: utf-8 -*-
from setuphelpers import *
import tarfile
from typing import List, Optional


app_name = "podman"
bin_name = "podman"
bin_path = "/usr/local/bin"
app_path = makepath("/opt", app_name)

bin_target = makepath(bin_path, bin_name)
app_target = makepath(app_path, "bin", "podman-remote-static-linux_amd64")


def get_installed_version():
    # --version returns "podman version <version>"
    return run(f'"{app_target}" --version').split()[-1] if isfile(app_target) else ""

def install():
    extract_path = glob.glob("podman-remote-static-linux_amd64.tar.gz")[0]
    mkdirs(app_path)
    extract_tar(extract_path, app_path)

    if isfile(bin_target):
        remove_file(bin_target)

    os.symlink(app_target, bin_target)

def audit():
    audit_status = "OK"
    installed_version = get_installed_version()
    if not installed_version:
        print(f"{app_name} is not installed")
        audit_status = "ERROR"
    elif 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 not os.path.lexists(bin_target):
        print(f"{app_name} ({installed_version}) is installed but {bin_target} is missing")
        audit_status = "WARNING"
    else:
        print(f"{app_name} ({installed_version}) is installed")
    return audit_status

def uninstall():
    print(f"Removing {app_name}")
    if isfile(bin_target):
        remove_file(bin_target)
    if isdir(app_path):
        remove_tree(app_path)

def extract_tar(
    tar_path: str,
    extract_path: str = ".",
    exclude_list: Optional[List[str]] = None,
    include_list: Optional[List[str]] = None
) -> None:
    """
    Extracts a tar archive to the given directory, with optional inclusion or exclusion filtering.

    :param tar_path: Path to the .tar (or .tar.gz, .tar.bz2, etc.) archive.
    :param extract_path: Directory where files should be extracted.
    :param exclude_list: List of path prefixes to exclude from extraction.
    :param include_list: List of path prefixes to include exclusively. Overrides exclude_list if provided.
    """
    with tarfile.open(tar_path, 'r:*') as tar:
        all_members = tar.getmembers()

        if include_list:
            include_set = set(include_list)
            members = [
                m for m in all_members
                if any(m.name.startswith(inc) for inc in include_set)
            ]
        elif exclude_list:
            exclude_set = set(exclude_list)
            members = [
                m for m in all_members
                if not any(m.name.startswith(exc) for exc in exclude_set)
            ]
        else:
            members = all_members

        tar.extractall(path=extract_path, members=members)

# -*- 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
c434dd2909a2fb1acc888b1277521f7c9c1727d52f9cb035c591fe42b45e5106 : WAPT/control
f457e972a6782b75c31b9329a2ea50a0043341dae1d9a3aaa608dc17ddec967b : WAPT/icon.png
9004bc7515f8d4dfaea2c6ceb9bc934ac0513d8c362d8dfe8b526bd2761aee8e : luti.json
a8a9a1896fe0836e2d58105259667a6b8d48440a05b07eff19e96d774b6a35cf : podman-remote-static-linux_amd64.tar.gz
d9bd06ecedca0ff32029ac5f7488444a30140b5557bb4751c7a1448824e24708 : setup.py
7d50b67b08759b913ba4098dc3ad07b6f0bdf52ab634631061b257c52a2f7b03 : update_package.py