FreeKB - RPM Delete, Remove or Erase a Package
RPM - Delete, Remove or Erase a Package

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

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 17e11 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |