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'?!")

you are viewing a single comment's thread
view the rest of the comments
[–] 14 points 20 hours ago* (last edited 20 hours ago) (4 children)

https://www.digitalocean.com/community/tutorials/install-7zip-ubuntu#step-3-install-the-official-7-zip-binary-alternative-method

That takes you through the steps of untaring it and installing the package from the tar.

Which leads to the question, what is wrong with the one in the apt repo? 7Zip hasn't had major problems that I am aware of and bug fixes are generally back ported.

  • source
  • hideshow 4 child comments
  • [–] [S] 2 points 20 hours ago* (last edited 20 hours ago) (3 children)

    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.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 7 points 19 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.

  • source
  • parent
  • [–] 7 points 19 hours ago* (last edited 19 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.

  • source
  • parent