Fedora 22 was released a few months ago and amongst many new features it came with a replacement for yum as package manager called dnf, or DaNdiFied YUM, oh yes yum is still around but it is now considered legacy software. Also DNF will become in the near future the default package manager for RHEL and CentOS so it is for the best that you get familiarized with it sooner than later.
The first thing you need to understand about dnf is that many commands are basically still the same but there are differences. Package management commands can be executed with almost the same syntax previously used with yum.
Search for a package.
Install a package.
Remove a package.
Get information about a package
Group and repository management commands are still the same as well.
Querying the available repositories for a specific command.
dnf comes with some powerful capabilities like history query.
This can be specially helpful if you need to rollback a change, like clean up dependencies after uninstalling a package or reinstall a package.
You can also look for duplicated within the installed ones.
Retrieve all available packages providing a specific software of capability.
This is a very basic introduction to dnf capabilities but hopefully you have been able to get how it works. My advice is to review DNF documentation for all the details.
The Photon Connection
VMware Photon comes with tdnf (Tiny DNF); this is a development by VMware that comes with compatible repository and package management capabilities. Not every dnf command is available but the basic ones are there.
Package installation and updates.
In the future if I find the time I’ll write a new post with some advanced examples of dnf commands. Comments are welcome.