Hi all, I'm a bit of a newbie to CentOS though not Linux in general. I come from an apt-get package management mentality and I've had a few issues where package management actions haven't quite done what I'd expect. So I'm guessing it's user error! :) I installed GNOME and then decided that I wanted to install Xfce to try it out. I decided to then remove it with just 'yum remove' after playing with it a bit. It seemed to uninstall a lot of GNOME stuff (presumably that they had in common) and so the next time I tried to use GNOME it looked different and was missing a few components. Should I have just reverted the install of Xfce to undo it so that those dependencies would've have been touched or is this just how yum works?
Shaun wrote:> Hi all, > > I'm a bit of a newbie to CentOS though not Linux in general. I come from > an apt-get package management mentality and I've had a few issues where > package management actions haven't quite done what I'd expect. So I'm > guessing it's user error! :)Personally, having struggled a few times with apt-get (and trying to remove old kernels in ubuntu! *ack*), I like yum.> > I installed GNOME and then decided that I wanted to install Xfce to try > it out. I decided to then remove it with just 'yum remove' after playing > with it a bit. It seemed to uninstall a lot of GNOME stuff (presumably > that they had in common) and so the next time I tried to use GNOME it > looked different and was missing a few components. Should I have just > reverted the install of Xfce to undo it so that those dependencies > would've have been touched or is this just how yum works?Why uninstall, unless you're short of disk space? You can always just change your window manager. And gnome has a ludicrous number of interdependencies. mark
On Thu, Apr 26, 2012 at 9:49 AM, Shaun <centos at stinkfish.org> wrote:> Hi all, > > I'm a bit of a newbie to CentOS though not Linux in general. I come from > an apt-get package management mentality and I've had a few issues where > package management actions haven't quite done what I'd expect. So I'm > guessing it's user error! :) > > I installed GNOME and then decided that I wanted to install Xfce to try > it out. I decided to then remove it with just 'yum remove' after playing > with it a bit. ?It seemed to uninstall a lot of GNOME stuff (presumably > that they had in common) and so the next time I tried to use GNOME it > looked different and was missing a few components. ?Should I have just > reverted the install of Xfce to undo it so that those dependencies > would've have been touched or is this just how yum works?You can't really generalize about that. Yum just does what the dependencies of the rpm packages you install or remove tell it to do. A "yum groupinstall 'GNOME Desktop Environment'" might bring back anything that is missing. -- Les Mikesell lesmikesell at gmail.com
On Fri, April 27, 2012 04:15, Shaun wrote:> Well this is it. I've used both 'remove' and 'history undo' and had > better success (system not having something important removed) with > the latter.I have only this suspicion. It may be that yum history undo only rolls back the changes actually made by the previous yum update/install since it 'knows' that the system environment has not changed in the interim. Whereas yum history remove, since it has to cherry-pick packages from a possibly changed environment, instead removes rpm dependencies based on the package specs of the items directly added by the original yum command, whether these were installed in that transaction or not. But, this is only a guess. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3