Add a script that does pretty much the same, but uses dnf api