Among the changes in OM Lx 4.0 is switching from urpmi/rpm5.org to dnf/rpm.org. For most of us users we don’t need to be concerned about the rpm part that is just different versions of rpm and maintained by different people, this will affect developers but users likely won’t notice anything different. The change from urpmi to dnf will be noticed by users as the commands will be different.
The not so secret about package management in Linux is the Package Management GUI’s can take longer to learn and get used to than the command line interface (cli). The simplest thing is to open Konsole and type:
$ dnf --help
$ man dnf
The help menu takes about a minute to a minute and a half to read. The man page takes about 3-5 minutes. Both are meant to be available for users to refer to as they use their system and need to find quickly how to do something. There are also wiki pages and docs about dnf. Using the DNF software package manager. Fedora wiki page. DNF Command Reference. Most users don’t really need to read these maybe just scan while you are getting used to dnf and know the links are available when you need to look something up. Same applies to --help menu and man pages, just scan them and know they are there if you need them.
Some basics for using dnf in OpenMandriva Lx 4.0:
To install a package:
$ sudo dnf install packagename
To remove a package:
$ sudo dnf remove packagename
To search repositories for a package:
$ sudo dnf search packagename
Note: I find that ‘dnf search’ will work with partial names as well which should make it lots easier to find
To cleanup any files and packages left in cache and to remove repository metadata:
$ sudo dnf clean all
this will force dnf to download fresh metadata next time dnf is run.
To update your system from command line:
$ sudo dnf upgrade
Some other common dnf commands:
autoremove - removes packages installed as dependencies that are no longer required by currently installed programs.
check-update - checks for updates, but does not download or install the packages.
downgrade - reverts to the previous version of a package.
info - provides basic information about the package including name, version, release, and description.
reinstall - reinstalls the currently installed package.
repolist - simply list enabled repositories.
Know it, learn it, believe it, use it.