如何在 Raspbian 上尋找 systemd 版本

如何在 Raspbian 上尋找 systemd 版本

如何找到我的 linux (raspbian) 安裝中包含的 systemd 版本?

跑步時lsb_release -a,我取得linux(raspbian)版本資訊如下

發行商 ID:Raspbian
說明:Raspbian GNU/Linux 9.1 (stretch)
版本:9.1
代號:stretch

答案1

問它:

$ /sbin/init --version
systemd 123

$ systemctl --version
systemd 123

您也可以詢問套件管理器:

$ dpkg -l systemd
||/ Name              Version       Architecture  Description
+++-=================-=============-=============-========================================
ii  systemd           123-1         amd64         system and service manager

如果您認為檔案可能已升級,您可以詢問正在運行的進程:

$ busctl --system get-property org.freedesktop.systemd1 \
                               /org/freedesktop/systemd1 \
                               org.freedesktop.systemd1.Manager \
                               Version
s "123"

相關內容