How do I do system wide installs?

Greetings,

SOLVED
Apparently it’s working fine, the fact that it asked for my user pass made me think it was installing to user

I am new to DNF and OpenMandrive in general. I came from OpenSUSE, excited to try this OS. Furthermore, I was never a fan of fedora but hey, thought this might be different. Right off the bat I had an issue, Packages are being installed under user not root. I have never been asked for my root password, which I set up during install.

I am not a fan of this and wish to change it to work the way OpenSUSE and almost anything else I have tried aside from fedora do it. Root in full control and users just exist under its control. Problem is, I have no idea how to do this.

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category
I have reviewed the Wiki for relevant information
I have read the Release Notes and Errata

OpenMandriva Lx version:

25.04

Desktop environment (KDE, LXQT…):

KDE Plasma

Description of the issue (screenshots if relevant):

I can not install packages system-wide, everything is user specific

Relevant informations (hardware involved, software version, logs or output…):

Technically this isn’t an issue, this is just how this distro operates, problem is that I don’t want it to operate this way. I come from OpneSUSE Tumbleweed and I want the distro to operate like that. Everything controlled by root and my user is just there and my password is only used to log in. Root controls, users and all packages and everything is installed system-wide.

@YAR_Oracool
welcome1

Assuming I did understand your question/doubt:
commands as root must be run like:

$ su
[root-password]
# your_command(s)

if you type
$ sudo
[user-password]
your first-created-user password is required
your_command(s)

This is not different behaviour from other distribution afaik.

So when you see suggested command/s
$ sudo whatever
just do
$ su
and command will be run as root/admin

1 Like

Welcome! We are glad you are here and hope you will decide to make this your home.

I too, came from Tumbleweed in Jan. DNF is different, but it does the same things. It takes a bit to get used to it, but you will. Hang in there.

1 Like

Hi,
the packages are actually installed as root, the way they should be. We just configure the user created during installation with special privileges to run some stuff with escalated privileges.
If you don’t like this, simply create another user and use that one.

how are you installing your software ? every time I install something it ask for my password, unless it is a Flatpak

I think he was confused because it asks for his password instead of root’s password. It doesn’t really matter as he is a sudoer.

It’s not asking for root password whcih is my issue.

It’s kinda on shaky ground since it lacks a bunch of packages I use. Testing is kinda hard too due to not having a database of packages

This is a setup preference. You can enable root if you want to without having to reinstall. There are several how-to’s that show you how to do that in the command line. The change will tell polkit to use root instead of the sudoers. But installs done as a sudoer are system wide.

This statement makes absolutely no sense. What are you talking about?

@bero explained that here. The user created during install also known as “first user” is given sudo privilages. I believe this is done by giving “first user” membership in the wheel group. I think this describes it fairly well. The wheel group has been a part of Linux for a long time but probably not every Linux distro does things exactly the same way with these permissions.

Do you have all the repos enabled? Only the “main” repo is enabled by default. Additional repos are extra, restricted, and non-free. Look for Software Repository Selector aka om-repo-picker.

Not sure I understand this. If a package is installed it is installed. If it is a system package it is part of the system, if it is an application, well you know what that means, and library packages are system packages also.

In that article you will see how you can change sudo privilages by using visudo. Also you can install any package from terminal (Konsole) as root with dnf in. Or I suppose you can remove your user account from the wheel group. In other words if you don’t like it you can change it.

I came here from years of Tumbleweed a few months ago. I sudo here just as I did in Tumbleweed.

Could this possibly be an issued of not having the proper repos?

Can you please post the output of
dnf repolist

There is no website for me to just see if a package I want is even in there without booting into the live cd. Like Void, openSUSE and nixos’s package search website which makes planning things out easier.

And even in live boot, certain pieces of software I used from package manager don’t exist, and I have to rely on flatpak, for most people that is fine, but I prefer to keep my storage usage to a minimum spacially on mobile devices. Hope this clarifies things.

Yes, that is how I installed steam on openMandriva.

I don’t see an article here but I have mangled with visudo and got it to a point to comply in the terminal but when it summons dnf drake, it still asks for userpass.

https://abf.openmandriva.org/
https://pkgs.org

Live boot is not a persistent image, anyway. You will still need to install and enable the rest of the repos you want. Then you can just dnf search <package_name> --refresh (even as a regular user) and see if the package you want is there.

On paper, it isn’t until you take into account security. My user pass is quite simple, but my root password, isn’t. If I move away from the device, someone can do whatever they want if they know my user pass, which I used to get in the device. This isn’t an inherent flaw, it’s just not how I’m used to using my system. I expect everything to be under the control of root and my user living under it.

1 Like

Our repositories are here. You can find packages with dnf search name you can even use partial name with search.
You can also search for software in dnfdragora, Discover, or dnfdrake. dnfdrake is not installed by default.

This is the guidance I use to manage my user password.

While you could have two accounts with two separate passwords, there is still a possibility of profile tampering up to and including keyloggers. That can defeat what you think is an extra layer of security. I suppose it’s a philosophical debate for the ages. In any case, It’s better to have one way in that you know is locked up properly instead of using partial security through obscurity (which is never secure).

I use a password manager for my passwords, but in order to get into the device to begin with, I need something I can remember. I am also completely fine with reinstalling openmandriva and starting from scratch. If making a new user outside, the installer won’t add it to sudoers. System is basically fresh at this point.