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
[–] 2 points 20 hours ago* (last edited 20 hours ago) (10 children)

When you do double click on this "7zz", do you expect a GUI?

  • source
  • hideshow 10 child comments
  • [–] [S] 1 point 20 hours ago (9 children)

    Thank you for replying. It doesn't run in terminal, either.

  • source
  • parent
  • hideshow 9 child comments
  • [–] 5 points 20 hours ago* (last edited 20 hours ago) (5 children)

    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...

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

    Me big dumb-dumb. This has tripped me up before.

    Thank you!

  • source
  • parent
  • hideshow 4 child comments
  • [–] 5 points 18 hours ago (3 children)

    Yeah I don't get why you need to do that but I've made this mistake enough to always double check myself.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 8 points 18 hours ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 11 hours ago (1 child)

    In my head I would expect that if you just use the name, it should search in cwd and then next priority would be path. Because the cwd is basically the context you're working in. That's why this trips me up every time, this design doesn't mesh well with my mental model.

    But maybe that's a me thing.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 10 hours ago

    Well, if you want it to do that, you can just add . to your PATH.

    I would be very certain that you are not going to cause any collisions, though. Remember that shell scripts will inherit your PATH and may call things you aren't thinking about.

  • source
  • parent
  • [–] 3 points 20 hours ago* (last edited 20 hours ago) (2 children)
    $ 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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 1 point 19 hours ago (1 child)
  • [–] 5 points 18 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.

  • source
  • parent