パスワードを忘れた? アカウント作成
この議論は賞味期限が切れたので、アーカイブ化されています。 新たにコメントを付けることはできません。

LSBの活動は終了している?」記事へのコメント

  • by Anonymous Coward on 2023年03月10日 17時09分 (#4424673)

    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Debian
    Description: Debian GNU/Linux 11 (bullseye)
    Release: 11
    Codename: bullseye

    Debian/Ubuntu限定。
    RedHat系などは使ってないので知らない。

    • by Anonymous Coward

      openSUSEだと、こんな感じです。

      gw252:~> lsb_release -a
      LSB Version: n/a
      Distributor ID: openSUSE
      Description: openSUSE Leap 15.3
      Release: 15.3
      Codename: n/a

      Alpine Linuxには、lsb_releaseコマンドは入ってないようですね。

      • by Anonymous Coward

        fedora には標準では入ってないけど、

        % dnf provides lsb_release
        redhat-lsb-core-4.1-56.fc36.x86_64 : LSB Core module support
        Repo : fedora
        一致:
        ファイル名 : /usr/bin/lsb_release

        わざわざインストールする気にはなれないので、後はパス。

    • by Anonymous Coward

      今なら/etc/os-releaseファイルを使うのがいいと思います。今はたいていのLinuxディストリビューションで用意されています。

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

      Debian

      PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
      NAME="Debian GNU/Linux"
      VERSION_ID="11"
      VERSION="11 (bullseye)"
      VERSION_CODENAME=bullseye
      ID=debian
      HOME_URL="https://www.debian.org/"
      SUPPORT_URL="https://www.debian.org/support"
      BUG_REPORT_URL="https://bugs.debian.org/"

      CentOS

      VERSION="7 (Core)"
      ID="centos"
      ID_LIKE="rhel fedora"
      VERSION_ID="7"

「科学者は100%安全だと保証できないものは動かしてはならない」、科学者「えっ」、プログラマ「えっ」

処理中...