Red Hat Uninstall command

Hi,

I am using the following command to uninstall libreofficekit manually.

" rpm -e libreofficekit-5.3.6.1-25.el7_9.x86_64 --nodeps ". Could any one help on this through custom script.

The following scripts I already used, but it’s not uninstalling

  1. wait /bin/bash -c rpm -e libreofficekit-5.3.6.1-25.el7_9.x86_64 --nodeps
    2.wait /bin/bash -c rpm -e $(rpm -qa ‘libreofficekit-5.3.6.1-25.el7_9.x86_64’) --nodeps

Thanks in advance,
Sathish

Since you want Bash to run a command with spaces, you probably need to quote it all to the -c parameter. Try

wait /bin/bash -c "rpm -e libreofficekit-5.3.6.1-25.el7_9.x86_64 --nodeps"

There may be another rpm parameter needed to make the confirmation message silent but I’m not in front of computer at the moment.