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
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
-
This doesn't seem to work after you install a local file RPM via
yum install *.rpm
. Uninstalling viayum erase *.rpm
throws this error: ``` No Match for argument: <filename>.rpm No Packages marked for removal ```– RichardMar 30, 2022 at 18:33 -
1As far as I am aware, you shouldn't use the ".rpm" extension when erasing the package - just use the package name. Mar 31, 2022 at 0:27