How to find the DB2 installation path using db2ls

02 November,2015 by Tom Collins

Question: Is there a DB2 utility to find the DB2 installation path? The utility should also return installation date and other useful information.  I need this utility to run on Linux.

Answer:  From DB2 9.5 , the db2ls command is available.  On a typical installation of a DB2 server,  a symbolic link is added to the /usr/local/bin path.

A different resultset returns, depending on the installation. If you execute db2ls as root, only root installations are returned. If you execute as a non-root , the recordset includes DB2  installations by root and the DB2  installations completed by the id.

The columns returned are:

Install Path


Fix Pack

Special Install Number

Install Date

Installer UID

Read More on DB2 uninstall, CATALOG and documentation

How to uninstall DB2 - DBA DB2

DB2 TOOLS CATALOG – Is it required? - DBA DB2

DB2 Version 9.7 Documentation - DBA DB2

Author: Rambler(


Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment on How to find the DB2 installation path using db2ls

Comments are moderated, and will not appear until the author has approved them. | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright