Group Removal of packages in RHEL Fedora Linux

You need to be very careful while performing this step. With yum groups, you can easily install, update and remove a set of packages. Suppose you want to remove all the Editors from your RHEL machine, you can simply use the option groupremove of yum.

NOTE: You must ensure first that you are aware of the packages in a group. So first ensure that you are fully aware of all the packages that will be removed.

# yum groupinfo "Editors"
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Group Process

Group: Editors
 Description: Sometimes called text editors, these are programs that allow you to create and edit text files. This includes Emacs and Vi.
 Default Packages:
   vim-enhanced
 Optional Packages:
   cssed
   emacs
   emacs-auctex
   emacs-bbdb
   emacs-ess
   emacs-muse
   emacs-vm
   geany
   gobby
   jed
   joe
   leafpad
   nedit
   pida
   poedit
   psgml
   scite
   scribes
   scribes-templates
   vim-X11
   xemacs
   xemacs-ess
   xemacs-muse
   xemacs-packages-extra
   xmlcopyeditor
   zile

Now that you are aware of the list of packages, you can proceed with groupremove.

# yum groupremove "Editors"
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Group Process
Resolving Dependencies
--> Running transaction check
---> Package emacs.i686 1:23.2-7.fc14 set to be erased
---> Package vim-enhanced.i686 2:7.3.056-1.fc14 set to be erased
---> Package xemacs.i686 0:21.5.29-14.fc14 set to be erased
--> Processing Dependency: xemacs(bin) >= 21.5.29 for package: xemacs-packages-base-20100727-1.fc14.noarch
--> Processing Dependency: xemacs(bin) = 21.5.29-14.fc14 for package: xemacs-common-21.5.29-14.fc14.i686
--> Running transaction check
---> Package xemacs-common.i686 0:21.5.29-14.fc14 set to be erased
---> Package xemacs-packages-base.noarch 0:20100727-1.fc14 set to be erased
--> Finished Dependency Resolution
Remove        5 Package(s)

Installed size: 37 M
Is this ok [y/N]: n

If you press y, you will be able to remove all the packages. But as you see that we pressed n since we don’t wish to remove vim and emacs from our machines

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s