Red Hat Bugzilla – Bug 488075
Deselected Gnome and X packages get installed
Last modified: 2009-03-10 13:01:37 EDT
Description of problem:
No idea how this slipped through QA. Gnome and X packages get installed during the initial installation despite being deselected.
Always. Install, deselect Gnome and X, proceed with defaults. Watch X and Gnome getting installed regardless.
Do not install Gnome when it is deselected. Do not install X Server when it is deselected.
Which GNOME or X packages are you seeing installed? The libraries get installed regardless as part of base system functionality. If you are seeing programs being installed, it could be because other package selections you made required those as part of their dependencies. Knowing which packages you selected and which you deselected would be helpful in determining if there's really a bug here or not.
I only today got around to install another test system on a virtual machine. Instructions to reproduce are already given: During a normal installation, deselect X Server and Gnome Desktop. I did a grep through /root/install.log for "X" and "gnome". Result:
As you can see, the X.org server package and the gnome desktop package was included, despite the previous deselection. Specifically, I expect the installer to deal with the handling of package dependencies. I really don't want to deal with these issues myself, that's what installers are for. When packages are deselected, depending packages should also be deselected, possibly after asking the usual "are you sure" question. If that's not possible, and the installation of a package is required, it should not be offered for deselection.
A good resolution would be the introduction of an option "This is a headless server, no graphical utilities should be installed". That is what I really want, and not to deselect individual packages or package groups.
We cannot simply go through and remove all packages that depend upon a deselected package. After we've done that, do we then go through and remove all the dependencies of those packages? Following that up, we're going to eventually end up with almost nothing selected, which is certainly not the behavior you would be expecting.
Also what do we do when one of the dependencies of a deselected package is also the dependency of a package you intentionally selected? We either remove that dependency (which then requires removing the intentionally selected package - not what you want, or we don't remove the dependency (which leaves you with the package you didn't want installed - also not what you want). So really, there's no clean way to handle this.
The package selection screen really should be treated as a request, since packages can get pulled back in to satisfy dependency resolution. In your case, it looks to me like there's some package pulling in the desktop and X server package when perhaps it shouldn't be. You can try running rpm -q --whatrequires gnome-desktop xorg-x11-server-Xorg and seeing what packages pulled them in, then filing packaging bugs with those components.
We can't just not offer packages for deselection, as it is perfectly possible to end up with an install that has almost nothing in it. You just have to be a little careful. And we can't just have a checkbox that says "headless server -> no graphical utilities", as that logic does not follow. It is perfectly possible to install a server with graphical programs and then run them remotely displayed on a workstation.