RPM - Delete, Remove or Erase a Package
by
Jeremy Canfield |
Updated: August 15 2021
| RPM articles
Before deleting a package, you will almost always want to use the rpm --query --all command to listed the currently installed packages.
~]# rpm --query --all
tzdata-2021a-1.fc34.noarch
tar-1.34-1.fc34.x86_64
tcl-8.6.10-5.fc34.x86_64
teamd-1.31-3.fc34.x86_64
tpm2-tss-3.0.3-2.fc34.x86_64
tcpdump-4.99.0-2.fc34.x86_64
traceroute-2.1.0-13.fc34.x86_64
time-1.9-16.fc34.x86_64
tree-1.8.0-6.fc34.x86_64
terraform-1.0.4-1.x86_64
The -e or --erase option can be used to remove a package, but does not remove the configuration files. In this example, the terraform package will be erased.
rpm --erase terraform-1.0.4-1.x86_64
Did you find this article helpful?
If so, consider buying me a coffee over at