How to remove all packages from specific repo without dependencies

Print list of all repositories to get repo id (first column):

$ dnf repolist

Now remove all packages of selected repo:

# dnf repository-packages <repo-id> remove

See repository-packages section of dnf manual page for details regarding manipulation with all packages in specific repository.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)