Please,

I can’t find any clear directions for installing the version I downloaded from the 7Zip website (7z2606-linux-x64.tar.xz). The file inside is 7zz, but doesn’t run.

Installing through apt install gives version 23.

Thank you. (“Did you even say ‘Thank you’?!”)

  • TrackenDaKrackenOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    18 hours ago

    If you need to install 7-Zip on Ubuntu, the fastest path on Ubuntu 22.04 and 24.04 LTS is sudo apt install p7zip-full p7zip-rar

    I already tried that method, and checking version afterwards shows 23, not 26. Maybe it’s different for Ubuntu?

    Which leads to the question, what is wrong with the one in the apt repo?

    Was this nothing? Honestly asking, I assumed it was a real issue:

    https://cybersecuritynews.com/7-zip-vulnerability-code-execution/

    … bug fixes are generally back ported.

    I don’t know what “back ported” means.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      8
      ·
      17 hours ago

      Back-ported means you get the bug fixes for an older version. Ideally, you’ll have a secure and reasonably bug-free version of 7ZIP, just without the newest feature changes.

      How it works is that because 7ZIP is open-source, the maintainers of your distribution can look at the source code change that was made to fix the bug, and then they can look at the source code of the version that they shipped, back when the distro version was released, and apply that same change to it.

      Well, if the bug is present in that old version. A decent number of bugs get introduced in new versions and fixed in the next version, before Mint would ship them.

      There’s some limitations to backporting, like maybe a program introduces sandboxing to improve security, then that’s a feature and just too large of a code change to back-port.
      But that doesn’t happen too often. Back-porting is generally considered a valid strategy for securing software.

    • lime!@feddit.nu
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      17 hours ago

      backporting means to apply patches from newer versions of programs to older versions. if the version in apt is newer than june, it has the fix.

      as for whether it was nothing, it depends on whether your usecase involves routinely extracting unvetted .tar.xz-files as root.

      Edit: part of the promise with package managers like apt is that all packages are vetted for security issues while not changing in functionality during the support window of a particular release. as long as you update the packages that are installed, you get versions with the security issues fixed.

    • slazer2au
      link
      fedilink
      English
      arrow-up
      5
      ·
      17 hours ago

      Did you read section 3 that I linked directly to?

      It gives you the tar and install commands not the apt commands.