Sample Header Ad - 728x90

What is a DNF 5 compatible alternative to `dnf repository-packages ancient-repo remove`?

2 votes
2 answers
268 views
After updating my Fedora system to Fedora 41 it is using DNF in version 5 which is a replacement of DNF 4 that works differently in some situations. I noticed that the command dnf repository-packages ancient-repo remove no longer works. This command was useful for removing all packages installed from a specific repository (ancient-repo in this case). For example, with DNF 4, I could run:
dnf repository-packages ancient-repo remove
But in DNF 5, this results in an error:
Unknown argument "repository-packages" for command "dnf5". Add "--help" for more information about the arguments.
It could be a command provided by a plugin, try: dnf5 install 'dnf5-command(repository-packages)'
How can I achieve the same functionality with DNF 5? **Is there an alternative command or a workaround to remove all packages installed from a specific repository?**
Asked by Simon Schürg (241 rep)
Jan 18, 2025, 10:23 AM
Last activity: Jun 13, 2025, 12:45 PM