I tested installing a package for which I had to use yum localinstall <pkgfile>.rpm. Worked fine, but I cannot figure out how to remove it. How can I achieve that?

1 Answer 1


Either yum erase <package_name> or rpm -e <package_name> should remove any installed package. yum localinstall has been deprecated for some time, and in current versions of Fedora, as well as RHEL 8, it's simply an alias for yum install

  • 2
    ... or even dnf install. Dec 17, 2020 at 18:05
  • This doesn't seem to work after you install a local file RPM via yum install *.rpm. Uninstalling via yum erase *.rpm throws this error: ``` No Match for argument: <filename>.rpm No Packages marked for removal ```
    – Richard
    Mar 30, 2022 at 18:33
  • 1
    As far as I am aware, you shouldn't use the ".rpm" extension when erasing the package - just use the package name.
    – patbarron
    Mar 31, 2022 at 0:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .