• Julian@lemm.ee
    link
    fedilink
    English
    arrow-up
    7
    ·
    10 months ago

    How would the distro tell if the tar.gz is a program or just a bunch of compressed files? I tend to use tar files for compression rather than for distributing or installing software

    • Darken@reddthat.com
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      10 months ago

      By prompting the user to open as file / install as package

      Like how many distros prompt (when opening executables) to open as file / run as a program

      • 0x4E4F@sh.itjust.worksOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 months ago

        Yes, but the header of the file says it’s a binary, that is why it gives you the option to run as a program or open as a file. Because the OS knows that you can do either with binaries.