Removing OSG Software
is excellent at installing software, it's not very good at removing unused software. As most OSG functional units are spread across many RPMs, it is difficult to remove each RPM individually.
OSG provides a plugin,
, to assist sysadmins in removing our software. It has two design goals:
- Remove as many unnecessary RPM packages as possible when one of the top-level packages are removed.
- Provide strong guarantees that removing OSG software will not damage the rest of the system.
plugin is a fork of the standard
plugins, except it will only remove packages if they are only available from a repository considered as part of OSG.
Please read this section before first using this plugin!
- The plugin will only remove packages if the corresponding
.repo file in
- All OSG repos have this by default.
- Packages from EPEL will not be removed by default. OSG uses quite a few packages from EPEL. If you want to remove EPEL packages that got brought in by OSG, add
consider_as_osg=yes to the [epel] section in
- The plugin will only remove packages if they are from an "OSG" repo, and that repo is enabled. If the OSG repo isn't enabled by default, you'll want to add
--enablerepo=osg to your
yum remove command line.
- If you remove a package
foo, yum will first try to remove all packages that depend on
foo, then remove all unused packages.
- Suppose you have package
bar depending on
foo depends on
baz (and nothing else on the system needs
yum remove --osg foo will first remove
osg-ce depends on
osg-client, which depends on
osg-wn-client. Hence, if you remove
osg-wn-client on a CE, then this will remove the CE also.
- Even with this plugin,
yum remove is not the perfect reversal of a
yum install command. If you need a perfect reversal, restore from backup. This plugin will be acceptable for many, but not all, sites.
- For example, if an RPM package installed a Unix user named
glexec, the user will remain on the system after the package removal.
Before any action happens,
will print out the list of packages it will remove. Please review this
list before you confirm!
To install the plugin, do the following with the appropriate
[root@client ~]$ yum install yum-remove-osg
Then, to remove a package (such as
[root@client ~]$ yum remove --osg osg-ce
The two prompts above assume that the
repo is enabled (
if you are an ITB site).
Topic revision: r3 - 17 Nov 2011 - 19:01:41 - AlainRoy?