Dnf, Last metadata expiration check

I am running Rocky Linux 9.5.
Today, I ran “dnf update” which ran successfully, but now “dnf install …” is not working. It is showing the below message:
Did something happen with the “dnf update”?

Last metadata expiration check: 0:32:49 ago on Thu 03 Apr 2025 01:50:34 AM.
Dependencies resolved.
Nothing to do.
Complete!

What did you try to install?

I ran “dnf update” which might have updated/installed a lot of files.

And then you used dnf install but what package did you try to install? If it did nothing, chances are the package is already installed. We cannot guess what you did, so it’s best you give the most amount of info possible.

I was trying to install dhcp server.
I just tried it and I am able to install now, but for some reason, I was not able to last night. I was getting the message in my original post. Maybe I did something wrong

It is ok now. Thank you very much for your replies.

1 Like

The only difference with your command results above is it doesn’t show what it was attempting to install. For example on my system with nano already installed:

root@rocky9:~# dnf install nano
Last metadata expiration check: 4:29:44 ago on Fri 04 Apr 2025 04:47:54 AM CEST.
Package nano-5.6.1-6.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

as you can see from the second line it’s telling me that the package is already installed. Your output doesn’t list this line which is weird. Because if I put a package that doesn’t exist, then it gives me the results that it couldn’t find a match. And if I don’t provide a package named and just write dnf install, it just gives me the help on how to use that command.

So a strange one based on your output.

2 Likes

My command for that would be:

dnf install dnsmasq

A couple of weeks ago, I setup a similar Rocky Linux 9.5 and I ran “dnf install dhcp” (based on some of the documents on the internet) to install dhcp server, but when I was encountering this issue, I had to run “dnf install dhcp-server”. This seems a bit strange. Anyways, dhcp server is up and running. thanks