Question: 1 / 130

Which command is used to uninstall a package using rpm?

rpm -q

rpm -e

The command used to uninstall a package in RPM-based Linux distributions is "rpm -e". The "rpm" command is a powerful utility for managing packages, and the "-e" option specifically designates that a package should be erased or removed from the system.

When you execute "rpm -e package_name", it will look for the specified package in the RPM database and remove it from the system, effectively uninstalling the software. This is an essential function for package management, allowing users to clean up their systems by removing software that is no longer needed.

Other commands listed serve different purposes: "rpm -q" is used for querying and displaying information about installed packages, while "rpm -ivh" is used for installing new packages, not removing them. The "dnf remove" command is part of the DNF package manager, which is a more contemporary tool for handling packages in Fedora and similar distributions, but it operates differently than the direct RPM command.

rpm -ivh

dnf remove

Next

Report this question