To perform a silent (oracle-) install:
/directory_path/runInstaller [-silent] -responseFile filename
for example:
./runInstaller -silent -responseFile /home/oracle/install_oh_resp.rsp
To perform a silent uninstall:
/directory_path/runInstaller -deinstall ORACLE_HOME="DIRECTORY_PATH" "REMOVE_HOMES={OH_TO_REMOVE_DIRECTORY} -silent
for example:
./runInstaller -deinstall ORACLE_HOME="/ora/product/db/oh_resp" "REMOVE_HOMES={/ora/product/db/oh_resp}" -silent
For an example of a response file click