tis-7zip icon

7-Zip

Paquet d'installation silencieuse pour 7-Zip

26.3-45
Utilities
Utilities

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un deuxième scan VirusTotal est effectué pour vérifier que le status n'a pas changé.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-7zip
  • name: 7-Zip
  • version: 26.3-45
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Igor Pavlov
  • licence: opensource_free,cpe:/a:bsd:bsd_license,cpe:/a:gnu:lgpl_v3,wapt_public
  • locale: all
  • target_os: linux
  • impacted_process: 7z,7zFM,7zG
  • architecture: x64
  • signature_date:
  • size: 1.58 Mo
  • installed_size: 5.77 Mo
  • homepage : https://www.7-zip.org/

package           : tis-7zip
version           : 26.3-45
architecture      : x64
section           : base
priority          : optional
name              : 7-Zip
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : 7-Zip is a free and open-source file archiver with a high compression ratio
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : all
target_os         : linux
min_wapt_version  : 2.1
sources           : https://www.7-zip.org/download.html
installed_size    : 5774712
impacted_process  : 7z,7zFM,7zG
description_fr    : 7-Zip est un logiciel gratuit et open source d'archivage de fichiers avec un taux de compression élevé
description_pl    : 7-Zip to darmowy i open-source'owy archiwizator plików o wysokim stopniu kompresji
description_de    : 7-Zip ist ein Datenkompressionsprogramm mit einer hohen Kompressionsrate
description_es    : 7-Zip es un archivador de ficheros con una alta relación de compresión
description_pt    : O 7-Zip é um compactador de arquivos com alta taxa de compressão
description_it    : 7-Zip è un archiviatore di file gratuito e open-source con un elevato rapporto di compressione
description_nl    : 7-Zip is een gratis en open-source bestands-archiver met een hoge compressieverhouding
description_ru    : 7-Zip свободный файловый архиватор с высокой степенью сжатия данных
audit_schedule    : 
editor            : Igor Pavlov
keywords          : 7zip,7,zip,7-zip,file,archiver,high,compression,ratio
licence           : opensource_free,cpe:/a:bsd:bsd_license,cpe:/a:gnu:lgpl_v3,wapt_public
homepage          : https://www.7-zip.org/
package_uuid      : cb5b5b70-4c0b-4577-a2b9-a07150bfaa28
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.7-zip.org/history.txt
min_os_version    : 5.0
max_os_version    : 
icon_sha256sum    : eddc038d3625902b6ddeaabd13dd91529e8d457ffbd0c554f96d343ae243a67a
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-09-04T08:47:03.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         : NgSkgECcgByAWYYBpr9Dmxy2ZHsX5EfNnL7A2/Z2hKF8EtcjsWk9qZgl/oV9mxuxVWUt2IPAEFa/I5BFeSEfT75ZbC9rjJTt/fZGlmV/7yqGDNaMoyNDlKr/BJGfx9rtdUIiathj2Y0yZXqFBo3e7Gq8ipgtXnam0u/J1bjHLhmlDRk0l7Lk7sBVSr5pf4M5i3HT3QuiwqScCD5Pbv8EYS2DB8G93ZbuoiHo9rP98eBL7dNZSMrwQZ9IXhTVgC34iqfzu9YZ5apBk8BJIsifeeQsYxjFL+l+9syG640O9Qx4B1kDssVPwVQCUAQt+97sjM0tChCw4Ian7LKoKng+dQ==

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

bin_path = makepath("/", "usr", "local", "bin")


def install():
    # Initializing variables
    bin_name = glob.glob("*7z*.tar.xz")[0]

    # unzipping bin to /usr/bin
    with tarfile.open(bin_name, "r:xz") as tar:
        tar.extractall()

    print(f"copying 7zz to {bin_path}")
    filecopyto("7zz", bin_path)
    print("create a symlink 7z for compatibility purpose for p7zip users")
    if isfile(f"{bin_path}/7z"):
        remove_file(f"{bin_path}/7z")
    os.symlink(f"{bin_path}/7zz", f"{bin_path}/7z")


def uninstall():
    print(f"removing 7zz from {bin_path}")
    if isfile(f"{bin_path}/7zz"):
        remove_file(f"{bin_path}/7zz")
    if isfile(f"{bin_path}/7z"):
        remove_file(f"{bin_path}/7z")

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    url = "https://www.7-zip.org/download.html"
    download_dict = {
        "windows-x64": "https://www.7-zip.org/a/7znodotversion-x64.exe",
        "windows-arm64": "https://www.7-zip.org/a/7znodotversion-arm64.exe",
        "windows-x86": "https://www.7-zip.org/a/7znodotversion.exe",
        "linux-x64": "https://www.7-zip.org/a/7znodotversion-linux-x64.tar.xz",
        "linux-arm64": "https://www.7-zip.org/a/7znodotversion-linux-arm64.tar.xz",
        "darwin-all": "https://www.7-zip.org/a/7znodotversion-mac.tar.xz",
    }

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "b", proxies=proxies):
        if "Download 7-Zip " in bs_search.text and not "beta" in bs_search.text:
            version = bs_search.text.split("Zip ")[-1].split(" (")[0]
            nodotversion = version.replace(".", "")
            download_url = download_dict[control.target_os + "-" + control.architecture].replace("nodotversion", nodotversion)
            latest_bin = download_url.split("/")[-1]
            if requests.head(download_url, proxies=proxies, allow_redirects=True).status_code == 200:
                break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)

    # Validating or not update-package-sources
    return package_updated

dc99eff5008f1ab79bd7084c68513701547a808a89502bf4133683535ab3c695 : 7z2603-linux-x64.tar.xz
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
002bf6577c03950e1c0eedd6fb6ab49792f2ced4235b1f86c5722ad8ee15b4d8 : WAPT/changelog.txt
e903a93cd8e2db950e6962d4f7e8943633f1fc8ae0afb3bc0e574f0c76c8cc0f : WAPT/control
eddc038d3625902b6ddeaabd13dd91529e8d457ffbd0c554f96d343ae243a67a : WAPT/icon.png
44f1a78ca624399bd7adff50f5f5d37ceb9f3d901c5bc7649fb7ec434d9c0ec9 : luti.json
4223e43c6b6ee40f1a9b108d0c31f489efdfd52f9906cdb774ad125c8c217665 : setup.py
df16ec62293d1d7443d73f0f2a0de3d006fbb059a735a395f3546d58eb10222d : update_package.py

https://www.7-zip.org/history.txt
21.07-42 
add symlink 7z 

21.07-40
switch from p7zip to official 7zip for linux and macos

21.07-38
Now fixing mismatching software architectures
Reordered ext_file_association (to match with the software displaying) and no longer assiociate vhd* ext
min_wapt_version  : 2.0

21.07-36
Switching update_package() to update_package.py