Hi Serge,
As far as I know there is no simple way to do it. I'm using meta-package
dependencies if I want to do such a thing, but it's not perfect. Some
files (for example these created by configure_node) may survive this
step. So in addition to the procedure described below, you can also find
the files created on the exact day you configured your node, and
eventually delete them.
To remove the packages I'm using the following procedure (in the example
I'm removing lcg-MON):
rpm -qR lcg-MON | cut -f 1 -d ' ' | grep -v '(' > packages_to_remove
echo lcg-MON >> packages_to_remove
rpm -e `cat packages_to_remove`
Things get a little bit more complicated if you want to remove one
meta-package while preserving the other (in this example I'm removing
lcg-MON and preserving lcg-SE_classic):
rpm -qR lcg-MON | cut -f 1 -d ' ' | grep -v '(' | sort > packages_to_remove
rpm -qR lcg-SE_classic | cut -f 1 -d ' ' | grep -v '(' | sort >
packages_to_keep
diff packages_to_remove packages_to_keep |grep '<'| cut-f 2 -d ' ' >
pkg_to_remove_final
echo lcg-MON >> pkg_to_remove_final
rpm -e `cat pkg_to_remove_final`
Anyways, if someone can give a better recipe, I'll be also very glad to
hear it.
Best regards,
Adam
Serge Vrijaldenhoven wrote:
>
> How to de-install a meta-package *cleanly*?
>
> Example:
> I want to remove glite-UI (or any other glite meta package for that
> matter) completely with *all* the files it installed
>
> Preferably even *only* the files it installed extra (by issueing the
> install_node .... command) - and not the files that were already on
> the node (and on which the packages in the meta package also depend on)
>
> Grtz,
> Serge
|