将 linux 发行版的服务器版本与桌面版本进行比较时缺少哪些组件?只有DE丢失了吗?

Aar*_*hen 1 desktop-environment sles

我是 Linux 新手。我在 Linux 世界中看到,通常一个发行版会有两个版本,服务器和桌面:Ubuntu Server、Ubuntu Desktop。SUSE Linux Enterprise Server 和桌面。

网上很多资料说服务器版一般不包含DE(桌面环境)。所以我想知道服务器版本中是否只缺少 DE,还是服务器和台式机之间还有其他区别?

slm*_*slm 6

理由一:节省空间

像这样拆分发行版实际上更多地与您必须在系统上下载和安装多少垃圾有关。服务器版本和桌面版本之间实际上没有区别,除了哪些软件包捆绑在媒体 (DVD) + 上以及使用特定版本时默认安装的内容。

例如,您可以使用服务器或最小版本轻松安装 CentOS,然后在系统启动并运行后,运行以下命令:

$ yum groupinstall '..桌面环境..'

安装使其成为功能齐全的桌面版所需的所有软件包。

原因#2:专门安装发行版

至于还缺少什么,那真的取决于每个发行版。对于服务器发行版,他们通常会尝试删除软件以使下载更小且更易于管理。因此,像 Web 浏览器、LibreOffice 和任何与 GUI 相关的东西通常不会包含在服务器版本中。他们还将省略非 GUI 软件,如编译器,例如 gcc,以及大量其他软件,这些软件实际上与真正的服务器安装无关。

一些例子

在各种发行版上,例如基于 Red Hat 的 CentOS 或 Fedora,您可以使用该yum命令来获取各种软件组的列表:

$ yum grouplist
Available environment groups:
   Fedora Server
   Fedora Workstation
   Fedora Cloud Server
   KDE Plasma Workspaces
   Xfce Desktop
   LXDE Desktop
   Cinnamon Desktop
   LXQt Desktop
   MATE Desktop
   Sugar Desktop Environment
   Development and Creative Workstation
   Web Server
   Infrastructure Server
   Basic Desktop
   Minimal Install
Installed groups:
   C Development Tools and Libraries
Available Groups:
   3D Printing
   Administration Tools
   Audio Production
   Authoring and Publishing
   Books and Guides
   Cloud Infrastructure
   Cloud Management Tools
   Cloud Server Tools
   Container Management
   D Development Tools and Libraries
   Design Suite
   Development Tools
   Domain Membership
   Editors
   Educational Software
   Electronic Lab
   Engineering and Scientific
   Fedora Eclipse
   FreeIPA Server
   Games and Entertainment
   Headless Management
   LibreOffice
   MATE Applications
   MATE COMPIZ
   Medical Applications
   Milkymist
   Network Servers
   Office/Productivity
   RPM Development Tools
   Robotics
   Security Lab
   Sound and Video
   System Tools
   Text-based Internet
   Window Managers
Done
Run Code Online (Sandbox Code Playgroud)

然后使用以下命令查看每个文件中包含的内容:

$ yum groupinfo "X"
Run Code Online (Sandbox Code Playgroud)

- 或 - 在更高版本的 Fedora/CentOS 中,例如:

$ yum group info "DNS Name Server" 
Group: DNS Name Server
 Group-Id: dns-server
 Description: This package group allows you to run a DNS name server (BIND) on the system.
 Default Packages:
   +bind-chroot
 Optional Packages:
   bind
   dnsperf
   ldns
   nsd
   pdns
   pdns-recursor
   rbldnsd
   unbound
Run Code Online (Sandbox Code Playgroud)

您还可以使用以下命令获取已安装组的摘要:

$ yum groups
Available environment groups: 15
Installed groups: 1
Available Groups: 35
Done
Run Code Online (Sandbox Code Playgroud)