Chapter 7. Removing RHEL content
To optimize your environment, remove unnecessary software from Red Hat Enterprise Linux (RHEL) 10 by using the DNF tool. Uninstalling unused packages and functional groups ensures your system remains clean, efficient, and secure.
7.1. Removing installed packages Copy linkLink copied to clipboard!
To optimize your Red Hat Enterprise Linux (RHEL) 10 system, remove unnecessary software packages by using the DNF tool. Uninstalling unused software ensures your environment remains secure and streamlined.
You can use DNF to remove a single package or multiple packages installed on your system. If any of the packages you want to remove have unused dependencies, DNF uninstalls these dependencies as well.
Procedure
Remove particular packages:
dnf remove <package_name_1> <package_name_2> ...
# dnf remove <package_name_1> <package_name_2> ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow
7.2. Removing package groups Copy linkLink copied to clipboard!
To optimize your Red Hat Enterprise Linux (RHEL) 10 system, uninstall collections of related software by removing package groups with the DNF tool. Uninstalling entire groups ensures your environment remains efficient and secure by removing all unnecessary components at once.
Package groups bundle multiple packages. You can use package groups to remove all packages assigned to a group in a single step.
Prerequisites
- You know the name or ID of the group you want to remove. For more information, see Listing package groups and packages they provide.
Procedure
Remove package groups by the group name or group ID:
dnf group remove <group_name> <group_ID>
# dnf group remove <group_name> <group_ID>Copy to Clipboard Copied! Toggle word wrap Toggle overflow