Hello, I’m a bit new to advanced linux and programming stuffs… Can someone explain me why compiling exists and what this process does and how to do it in the principals situations (I’ve heard that you can use the “makepkg” command). Thx to everyone who replied.

  • lemmyreader
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    7
    ·
    2 months ago

    Some software is brand new and not yet packaged as software packages. And for already existing software Linux distributions will have to make choices as not everything can be included and maintained. Now if a developer creates new software, and things are not packaged yet (With Debian for Debian stable this can take a really long time) it can be comfortable for the developer to provide just instructions about how to compile the software so users can run the software, while the maintainer does not have to bother about packaging.

    • foremanguyOP
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      So it’s a bit like taking all the useful packages and mix it up in a clean package? And are .deb .rpm… packages made like that?

      • lemmyreader
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 months ago

        Yes, indeed. If you would want to you can re-compile Debian deb packages from Debian sources. To give you an idea : https://wiki.debian.org/apt-src There’s also Gentoo Linux which has a history of compiling software. Years ago that was interesting because of flags for compiling, make the resulting software optimized for certain CPU models.