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’?!”)

  • AmbiguousCabbage@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 hours ago

    I didn’t even know 7zip had a Linux build, pretty sure GNOME comes with builtin file compression tools in its file manager, and there are also command line tools. What do you use 7zip for?

    • cnnrduncan@lemmy.cnnrduncan.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 hours ago

      IIRC it sometimes handles archives that are split (.7z.001, .7z.002 etc) and password protected better than standard Linux archive tools.

  • brucethemoose@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 hours ago

    I don’t mean to be pessimistic, Mint is great, but if you want more up-to-date native system packages, Mint is not the distro for that.

    I went through this with Ubuntu. If you try to roll apt packages forward, you just end up fighting your system, and maybe borking it.

    The recourse it to install it with some over manager ecosystem (flatpak?), to build/download from source and run it manually when you need, or to be honest, just use a distro that ships newer packages.

    • TrackenDaKracken@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 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
        6
        ·
        7 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
        6
        ·
        edit-2
        7 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@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        7 hours ago

        Did you read section 3 that I linked directly to?

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

      • hoshikarakitaridia@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        8 hours ago

        Big dumb dumb here but just to make sure: did you try ./7zz?

        First I was thinking chmod but it’s tagged executable already. Though maybe you need to apply to all files recursively still…

            • frongt@lemmy.zip
              link
              fedilink
              English
              arrow-up
              5
              ·
              5 hours ago

              Because the current directory is not in your PATH.

              That’s generally a good thing, because you don’t want to accidentally execute something just because it’s in the same directory and has the same name as the executable you do want.

      • oni ᓚᘏᗢ@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 hours ago
        $ chmod +x 7zz # this line makes the file an executable
        $ ./7zz # this line executes the binary
        

        If you want to “install it”, you need to place the binaries to a proper place (like ~/.local/bin) and then add that path to your $PATH.

        Example: export PATH=$PATH:$HOME/.local/bin, then logout and login next.

          • moonpiedumplings@programming.dev
            link
            fedilink
            English
            arrow-up
            5
            ·
            5 hours ago

            To be clear, this is not a universally good idea. This version of the application, that you manually downloaded, will not receive any updates, including security updates. It may be secure now, but it will quickly become insecure unless you constantly manually update it.

            As other commenters have mentioned, usually fixes get “backported”, or security critical fixes are selectively taken and applied to the older version of the package. The idea is to keep the system behavior stable so that users don’t have to deal with things changing or new bugs, while users also receive automatic security updates.