OK, I have read the write-up called Using the DNF software package manager.
What if I wish to exclude multiple packages from being installed?
Using the command line: is the below syntax correct?
sudo dnf install @lxqt --exclude=pavucontrol pulseaudio falkon
Using the dnf configuration file: is the below syntax correct?
--excludepkgs="pavucontrol pulseaudio falkon"
Thanks for your help.
Exclude packages of this repository, specified by a name or a glob and separated by a comma, from all operations. Can be disabled using
--disableexcludes command line switch. Defaults to
The manual also has examples:
and search for
exclude= shows, for example:
dnf remove acpi tito
Remove the acpi and tito packages.
dnf remove $(dnf repoquery --extras --exclude=tito,acpi)
Remove packages not present in any repository, but don't remove the tito and acpi packages (they still might be removed if they depend on some of the removed packages).