LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
56 stars 6 forks source link

[unix_distributions][fedora] Re-enable DNF on Fedora Silverblue #1044

Open LukeShortCloud opened 9 months ago

LukeShortCloud commented 9 months ago

By using an alias that wraps around using a Toolbox container.

$ vim ~/.bashrc
cat >> ~/.bashrc << EOF
alias sudo="sudo "
alias dnf="bash -c '#skip_sudo'; toolbox -y create 2>/dev/null; toolbox run sudo dnf"
EOF

https://blog.christophersmart.com/2020/04/18/making-dnf-on-fedora-silverblue-a-little-easier-with-bash-aliases/