Yum is excluding default packages from group

General support questions
Post Reply
rockybulwinkle
Posts: 7
Joined: 2021/08/19 21:44:44

Yum is excluding default packages from group

Post by rockybulwinkle » 2022/01/26 18:53:27

As the title says, somehow my system is excluding the default packages from package groups. I was trying to use ansible (fairly inexperienced with it, still learning) to automate installing packages, but I think that it somehow marked them to not be installed; I see a "-" next to the package names in the group info. For example:

Code: Select all

[root@california ~]# libreoffice-writer
-bash: libreoffice-writer: command not found
[root@california ~]# yum groupinfo "Office Suite and Productivity"
Loaded plugins: aliases, changelog, fastestmirror, kabi, langpacks, tmprepo, verify, versionlock
Loading support for Red Hat kernel ABI
Loading mirror speeds from cached hostfile
 * base: mirror.nodespace.net
 * centos-sclo-rh: atl.mirrors.clouvider.net
 * centos-sclo-sclo: mirrors.seas.harvard.edu
 * extras: linux-mirrors.fnal.gov
 * updates: mirror.grid.uchicago.edu

Group: Office Suite and Productivity
 Group-Id: office-suite
 Description: A full-purpose office suite, and other productivity tools.
 Default Packages:
   -libreoffice-calc
   -libreoffice-draw
   -libreoffice-emailmerge
   -libreoffice-graphicfilter
   -libreoffice-impress
   -libreoffice-math
   -libreoffice-writer
   -unoconv
 Optional Packages:
   calcurse
   gnucash
   kmymoney2
   libreoffice-base
   libreoffice-ogltrans
   libreoffice-pyuno
   libreoffice-wiki-publisher
   revelation
   vym
 Conditional Packages:
    gnome-documents
[root@california ~]# yum group install "Office Suite and Productivity" --setopt=group_package_types=mandatory,default,optional
Loaded plugins: aliases, changelog, fastestmirror, kabi, langpacks, tmprepo, verify, versionlock
Loading support for Red Hat kernel ABI
Loading mirror speeds from cached hostfile
 * base: mirror.nodespace.net
 * centos-sclo-rh: atl.mirrors.clouvider.net
 * centos-sclo-sclo: ewr.edge.kernel.org
 * extras: mirror.genesisadaptive.com
 * updates: mirror.grid.uchicago.edu
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update
If I manually uninstall and reinstall the group, then it installs all the packages as expected.

I have two questions:
1. How does a package get excluded from the group installation persistently and quietly like this?
2. Is there a way to override whatever my original ansible scripts did to mark all packages in the group to be installed without needing to uninstall the whole group first?

Thanks!

rockybulwinkle
Posts: 7
Joined: 2021/08/19 21:44:44

Re: Yum is excluding default packages from group

Post by rockybulwinkle » 2022/01/26 21:42:13

I think I found my answers:

1. There were some packages that I wanted removed later in the ansible scripts that some packages in the group depend on. I think this is the source of them being marked to not install.

2. I can "yum group mark remove <groupname>", which leaves any packages installed by the group installed, but makes yum consider the group itself uninstalled, as if the packages were installed independently. Then, I can do the group install, and it pulls in all the packages as expected.

Post Reply