diff --git a/src/rhcsa.md b/src/rhcsa.md index c4d051a..ce7aeb9 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -700,3 +700,18 @@ sudo nano /etc/yum.repos.d/rhel.repo # Add the following line to the rhel.repo file: gpgcheck=0 ``` + +### dnf groups +```bash +sudo dnf group list # List all groups +sudo dnf group list --hidden # List all hidden groups + +sudo dnf group install "Development Tools" # Install the Development Tools group +sudo dnf group install --with-optional "Development Tools" # Install the Development Tools group with optional packages +sudo dnf group info "Development Tools" # Display information about the Development Tools group +sudo dnf group remove "Development Tools" # Remove the Development Tools group + +sudo dnf history # Display the history of the packages +sudo dnf history undo 1 # Undo the last package installation +sudo less /var/log/dnf.rpm.log # Display the dnf log +``` \ No newline at end of file