• /etc/os-release ID_LIKE should be "arch" not "archlinux"


    Hi,

    I’m using etc-update to update config files after update.
    I hav the issue described here :
    https://aur.archlinux.org/packages/etc-update/

    to fix this, the proposed solution is to change /etc/os-release and replace “ID_LIKE=archlinux” by “ID_LIKE=arch”

    I have no idea what the consequences couls be, but so far so good on my side.

    regards,

    Squalou

  • @squalou
    It is an (unofficial) AUR package. So in my mind it is their responsibility to make it work on anything they wish to run their package.

  • I don’t know,
    I mean : it’s supposed to be a cross-distrib tool, brought to arch using AUR as an easy mean.

    But it’s not the aur package maintainer that changes anything.

    The upstream project tries to support as many distrib as possible.

    That being said, the crucial question is (imho) : what is the ‘rule’ behind the ‘ID_LIKE’ value ?
    I have no idea, that’s an open question.

    Let’s have a look at an original arch install, this should be the ‘canonical’ name to be set there. (can’t do right now)

  • More information.

    On ‘arch’ : there’s no ID_LIKE, but an ID, whose value is ‘arch’

    imho that sounds like what should be set on any other distrib based on arch in the ‘ID_LIKE’ field.

    Additional info : that’s what Manajaro does.

  • @developers :
    kewl kommentierte 2018-11-22 07:41 (geändert am 2018-11-22 07:42 von kewl)
    We have changed how Arch derivatives are recognized by etc-update, now using ID_LIKE. If your distro is not recognized as Arch, please report to your distro project leaders to set ID_LIKE=arch in os-release.
    source: https://aur.archlinux.org/packages/etc-update/

    pacman -Qo /etc/os-release
    error: No package owns /etc/os-release
    

    this file is filled by devs as far as i know… so it is not provided by the AUR package.
    But i do not know if it is right or wrong to use archlinux instead of arch:

    ID_LIKE=
    A space-separated list of operating system identifiers in the same syntax as the ID= setting. 
    It should list identifiers of operating systems that are closely related to the local operating system in 
    regards to packaging and programming interfaces, 
    for example listing one or more OS identifiers the local OS is a derivative from. 
    An OS should generally only list other OS identifiers it itself is a derivative of, 
    and not any OSes that are derived from it, though symmetric relationships are possible. 
    Build scripts and similar should check this variable if they need to identify the local operating system 
    and the value of ID= is not recognized. 
    Operating systems should be listed in order of how closely the local operating system relates to the listed ones, 
    starting with the closest. This field is optional. Example: for an operating system 
    with "ID=centos", 
    an assignment of "ID_LIKE="rhel fedora"" 
    would be appropriate. 
    For an operating system with "ID=ubuntu", 
    an assignment of "ID_LIKE=debian" is appropriate.
    

    https://www.freedesktop.org/software/systemd/man/os-release.html

    Arch Linux:

    NAME="Arch Linux"
    PRETTY_NAME="Arch Linux"
    ID=arch
    BUILD_ID=rolling
    ANSI_COLOR="0;36"
    HOME_URL="https://www.archlinux.org/"
    DOCUMENTATION_URL="https://wiki.archlinux.org/"
    SUPPORT_URL="https://bbs.archlinux.org/"
    BUG_REPORT_URL="https://bugs.archlinux.org/"
    

    Antergos Linux (18.5):

    NAME="Antergos Linux"
    PRETTY_NAME="Antergos Linux"
    ID=antergos
    ID_LIKE=archlinux
    ANSI_COLOR="0;36"
    HOME_URL="https://antergos.com/"
    SUPPORT_URL="https://forum.antergos.com/"
    BUG_REPORT_URL="https://github.com/antergos"
    

    in the same syntax as the ID= setting
    so should be arch then ;)

  • @joekamprad @squalou

    Earlier today I installed Antergos using the latest ISO, and here’s the result:

    $ cat /etc/os-release 
    NAME="Antergos Linux"
    VERSION="19.2-ISO-Rolling"
    ID="antergos"
    ID_LIKE="arch"
    PRETTY_NAME="Antergos Linux"
    CPE_NAME="cpe:/o:antergosproject:antergos:19.2"
    ANSI_COLOR="1;34;40"
    HOME_URL="https://antergos.com/"
    SUPPORT_URL="https://forum.antergos.com/"
    BUG_REPORT_URL="https://github.com/antergos"
    
    

    So are we happy now? ;)

    On my older install ID_LIKE is archlinux.

  • PER-FECT :D

    thanks for the clarification !

arch48 archlinux5 idlike1 etcos-release1 Posts 7Views 59
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.