Removing the BigFix components from Linux

If you have one or more BigFix components installed on a computer, you can remove all of them at once, or one at a time.

To uninstall one or more BigFix components installed on a local Linux system, run the following steps:

  1. Look for the installed BigFix RPM packages by entering the following command:
    rpm -qa | grep BES
  2. Remove the Server, the WebUI, the Client, and Web Reports RPM files:
    rpm -e BESWebUI
    rpm -e BESWebReportsServer
    rpm -e BESRootServer
    rpm -e BESRelay
    rpm -e BESClientDeployTool
    rpm -e BESAgent
    Note: You cannot remove BESAgent until you remove all components depending on it (BESRootServer, BESWebUI, and so on).
  3. Remove the following files and folders:
    /etc/opt/BES*
    /opt/BES*
    /tmp/BES
    /var/log/BES*
    /var/opt/BES*

    Where BES* is a prefix followed by the name of a BigFix component, for example "BESClient".

    Note: If you do not plan to remove all BigFix components, keep the folder /var/opt/BESCommon.
  4. If your database engine is DB2, perform this step. Otherwise, skip to step 5.

    If your BFENT and BESREPOR databases are local, you can run these commands:

    su - db2inst1 
    db2 drop db BFENT
    db2 drop db BESREPOR

    If your BFENT and BESREPOR databases are remote, you can run these commands:

    su - db2inst1 
    db2 attach to TEM_REM user <UserName> using <Password>
    db2 drop db BFENT
    db2 drop db BESREPOR
    db2 detach
    db2 uncatalog node TEM_REM
  5. If your database engine is SQL Server, perform this step.
    Note: This step only applies if you are using an on-premise SQL Server (local or remote). In case your databases are on Cloud, follow the specific Cloud provider guidelines to remove your databases.

    Remove the BFEnterprise and BESReporting databases. For example, you can use the sqlcmd and run these commands:

    sqlcmd -U sa -S localhost,1433
    USE master;
    ALTER DATABASE BFEnterprise SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
    DROP DATABASE BFEnterprise;
    GO
    ALTER DATABASE BESReporting SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
    DROP DATABASE BESReporting;
    GO
    

    To remove a local SQL Server and all its databases, you can run this command:

    sudo yum remove mssql-server