When you want to install a package but get returned 404s because a new version is on the mirrors and you are on a metered/unreliable connection or you just don't want to update everything.
Edit: This is still a BAD practice and could lead to issues. See u/themusicalduck 's reply
No, absolutely not. What they mean is that logging into a desktop environment as root user is a bad idea. Instead of logging into a DE as root just to open a terminal, you should just switch to another tty.
Packages you installed (explicitly installed) will not show up under
pacman -Qdt
You can list all explicitly installed packages with
pacman -Qe
To mark explicitly installed packages as dependencies (i.e unmark them):
pacman -D --asdeps *package_name*
(as sudo or root)
*Edit: Markdown syntax
When you want to install a package but get returned 404s because a new version is on the mirrors and you are on a metered/unreliable connection or you just don't want to update everything.
Edit: This is still a BAD practice and could lead to issues. See u/themusicalduck 's reply
No, absolutely not. What they mean is that logging into a desktop environment as root user is a bad idea. Instead of logging into a DE as root just to open a terminal, you should just switch to another tty.
Why don't you add yourself to the sudoers list?
As u/themusicalduck pointed out, it is high risk. You have to be aware of what you are doing.
Packages you installed (explicitly installed) will not show up under
pacman -QdtYou can list all explicitly installed packages withpacman -QeTo mark explicitly installed packages as dependencies (i.e unmark them):pacman -D --asdeps *package_name*(as sudo or root) *Edit: Markdown syntax