Delete software out of the ODM

If you encounter the issue to deinstall a old ISMP package you have to deinstall it via an uninstall routine that is in the software-folder.
Sometimes it occurs that the Software is deinstalled cleanly, but the ODM still thinks that the software is installed.

Here is a guide how to delete the software off the ODM

1. Backup the ODM using the following command:
# tar -cvf /tmp/odm.tar ./etc/objrepos ./usr/lib/objrepos
Ensure that the /tmp filesystem has enough space to handle this request.
Otherwise, put the ODM tar file on a filesystem that you know is large
enough.

2. Determine the lpp_id for the fileset that cannot be uninstalled.
# export ODMDIR=/usr/lib/objrepos
# odmget -q name=<filename> lpp
Write down the lpp_id for reference while doing other steps.

3. Delete the filesets from root part of the ODM.
# odmdelete -q name=<filename> -o lpp
# odmdelete -q lpp_name=<filename> -o product
# odmdelete -q lpp_id=<ID from command above> -o history
# odmdelete -q lpp_id=<ID from command above> -o inventory

4. If necessary, remove information from the etc part of the ODM.
# export ODMDIR=/etc/objrepos

5. Determine the lpp_id for the fileset.
# odmget -q name=<filename> lpp
If this returns nothing, there is no ODM information present in
/etc/objrepos – skip Write down the lpp_id since it will be needed in
later steps.

6. Delete the filesets from this part of the ODM
# odmdelete -q name=<filename> -o lpp
# odmdelete -q lpp_name=<filename> -o product
# odmdelete -q lpp_id=<ID from command above> -o history
# odmdelete -q lpp_id=<ID from command above> -o inventory

7. Export the ODMDIR variable back to root part
# export ODMDIR=/etc/objrepos

8. Look for filesets by issuing the following command:
lslpp -l |grep <filename>  –> should say ‘not installed’

Advertisements
This entry was posted in aix and tagged . Bookmark the permalink.

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.