How do I do system wide installs?

Not sure if this is useful for you, but we do have envycontrol available in the repos which is a package for switching gpu’s on Nvidia Optimus laptops, there are KDE Widgets and Gnome Extensions available to control it through a gui if you do not want to do it with the terminal.

Here is a link to the envycontrol readme in its github, the GUI info is nearer the bottom of the document: envycontrol/README.md at 7a375fc69e249b82cdc03a83a745387b8e3d5ebb · bayasdev/envycontrol · GitHub

1 Like

To discover what groups current user is in simply open terminal as user and type groups. To discover groups of some other user account groups user_name. In OMLx you will see that we don’t have a group sudo. So one way to remove user from sudoers file is to remove user from group wheel.

The wheel group in Linux is a special user group that grants its members elevated privileges, allowing them to execute commands that require administrative access, typically using the sudo command. This group is a legacy from Unix systems, where it was used to control access to superuser capabilities.

So to remove a user from wheel group (creatively using ben79 as the example, you use your own uname.):

sudo gpasswd -d ben79 wheel
reboot

Then try:

$ sudo dnf in joe
[sudo] password for ben79: 
ben79 is not in the sudoers file.

I do not know if there will be any other consequences to this but it does remove user from sudoers file as it says. Maybe some things opened from graphical applications use sudo and won’t work, I don’t really know. But also I don’t see how to do what @YAR_Oracool wants without removing his user account/s from sudoers file.

If you don’t like this to add user back to wheel group:

Become root by typing su or su -
gpasswd -a ben79 wheel
reboot

Then do some test like for example sudo dnf in joe. I always test things like this. For myself or for posting stuff here.

So you can try this and find out if it does what you want. If not, it is easy to undo the change. No harm, no foul. There is nothing uncommon about adding or removing a user account from various groups.

Yes.
Your original question has been answered.
Please start a new topic for any other. Don’t mix stuff.
1 question/issue = 1 topic.
Thanks.