In Fedora, some people recommend adding some config values to /etc/dnf/dnf.conf. For example:
fastestmirror=True
max_parallel_downloads=10
defaultyes=True
I'd like to automate these config updates on a new system from a script in my dotfiles with a command like this:
sudo echo 'fastestmirror=True' >>/etc/dnf/dnf.conf
But I get a permission denied error when I try from terminal, even with sudo. I think maybe its because the file is owned by the root user? How can I make this work?