#+BLOG: cossig #+POSTID: 391 #+TITLE: CentOS/Fedora 不同配置/变体都默认安装了什么软件(组) #+DESCRIPTION: Default Software(Group) in Different Installation Config/Variation of CentOS/Fedora #+DATE: <2022-09-29 四> #+OPTIONS: toc:1 ^:{} for [[https://cossig.org]](CentOS 中文特别兴趣小组) link: [[https://www.cossig.org/391-centos-fedora-default-softwares]] 所以我这回不用英文了哈哈 * CentOS CentOS 安装时可选不同的配置 #+ATTR_HTML: :width 512px [[./../images/centos_install_config.png]] 其实这些就是不同的软件组 CentOS-Stream 8 为例, 定义软件组的文件是 [[https://git.centos.org/centos/comps/blob/master/f/comps-centos-8-stream.xml][comps.xml]] 左边的基本环境就是 == tag 列表 一共有11个 #+BEGIN_SRC xml custom-environment Custom Operating System 5 minimal-environment Minimal Install 4 server-product-environment Server 2 graphical-server-environment Server with GUI 1 cloud-server-environment Cloud Server 3 web-server-environment Web Server 50 infrastructure-server-environment Infrastructure Server 60 developer-workstation-environment Development and Creative Workstation 90 gnome-desktop-environment GNOME Desktop 80 workstation-product-environment Workstation 3 virtualization-host-environment Virtualization Host 70 #+END_SRC 但还是对不上, 应该很接近了...吧? 想起来不联网是没法选择安装软件的 然后瞅一眼产生的临时文件 =/tmp/dnf.cache/= #+BEGIN_SRC text ├── appstream-831abc7e9d6a1a72 │ ├── metalink.xml │ └── repodata │ ├── 95f4408838f85e23117d7d89ab47e1029692a443722e0e315fe3db07c32ee573-modules.yaml.xz │ ├── 2047121fda8828f9b4d611cbfb736a89048cb411356e7ac2bdd95d927d044791-filelists.xml.gz │ ├── e27fd8f9028bdc339a014f95debd07da4ef7b217522d14721af050aa9e7cf93e-primary.xml.gz │ ├── f0d518764a274c71de0773b3590932ded56234b2f6ac4bf025d125b7ed29269f-comps-AppStream.x86_64.xml │ ├── gen │ │ └── groups.xml │ └── repomd.xml ├── baseos-044cae74d71fe9ea │ ├── metalink.xml │ └── repodata │ ├── 88ded6c02c5c3c62ab02250505cf0b8dee3af85819b666731c3cf813c275db6c-primary.xml.gz │ ├── b47aeefede03d4d530f4538bf8f73531fd1a6a2bb66ca1778e3423c4dec34121-filelists.xml.gz │ ├── d52d95f0f2d1a56b197a698aa328813a7e45e2d5b2883e04f4a3f604638b7a4a-comps-BaseOS.x86_64.xml │ ├── gen │ │ └── groups.xml │ └── repomd.xml #+END_SRC 那里面的 =*-comps-*.xml= 的 == 的 == 就正好是 1~4 和两个 99 =comps-AppStream.x86_64.xml= #+BEGIN_SRC xml graphical-server-environment Server with GUI An integrated, easy-to-manage server with a graphical interface. 1 base-x container-management core fonts gnome-desktop guest-desktop-agents hardware-monitoring hardware-support headless-management internet-browser multimedia networkmanager-submodules print-client server-product standard server-product-environment Server An integrated, easy-to-manage server. 2 container-management core hardware-support headless-management server-product standard virtualization-host-environment Virtualization Host Minimal virtualization host. 99 base core standard virtualization-hypervisor virtualization-tools workstation-product-environment Workstation Workstation is a user-friendly desktop system for laptops and PCs. 4 base-x core fonts gnome-desktop guest-desktop-agents hardware-support internet-browser multimedia networkmanager-submodules print-client standard workstation-product #+END_SRC =comps-BaseOS.x86_64.xml= #+BEGIN_SRC xml custom-environment Custom Operating System Basic building block for a custom RHEL system. 99 core minimal-environment Minimal Install Basic functionality. 3 core server-product-environment Server An integrated, easy-to-manage server. 2 core hardware-support headless-management server-product standard #+END_SRC * Fedora Fedora 分不同的变体, 常见的是 Server 和 Workstation 与 CentOS 不同, Fedora 是在 [[https://pagure.io/fedora-kickstarts/][kickstarts]] 定义的变体 在 =[Payload]= 中定义了安装哪些软件(组) 然后根据 [[https://pagure.io/fedora-comps/blob/main/f/comps-f37.xml.in][comps.xml]] 就知道安装了什么软件 ** Workstation =workstation-product-environment= #+BEGIN_SRC xml workstation-product-environment <_name>Fedora Workstation <_description>Fedora Workstation is a user friendly desktop system for laptops and PCs. 2 base-x container-management core firefox fonts gnome-desktop guest-desktop-agents hardware-support libreoffice multimedia networkmanager-submodules printing workstation-product #+END_SRC ** Server =server-product-environment= #+BEGIN_SRC xml server-product-environment Server 2 server-product standard core hardware-support headless-management container-management #+END_SRC