installing Fedora updates DNF vs YUM
Hi,
Im using Fedora version 23 (latest upgrade and upates). Currently to receive the updates, I use: su -c 'yum update' This works fine, but I get: yum command has been deprecated, redirecting to '/usr/bin/dnf update'. See 'man dnf' and 'man yum2dnf' for more information. To transfer transaction metadata from yum to DNF, run: 'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate' I have run 'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate' with no errors. I assume I should now be able to use: dnf install update However when I do, every time, I get: Last metadata expiration check performed 0:59:08 ago on Fri Dec 18 17:30:42 2015. No package update available. Error: Unable to find a match. Please advise, thanks James |
Hi James,
just replace yum with dnf (I use sudo rather than "su -c" but that is up to you). Keep the exact same format: Quote:
Quote:
|
dnf update
dnf install update attempts to install package update, same as yum install update would try to do. For the most part, dnf is nearly identical to yum in commands, except update & upgrade are now interchangeable. |
When in doubt, try "dnf clean all" as a simple first fix.
|
Quote:
...nothing, it gives the message I stated above. My first thought, was..'well there is nothing to do'....no, when I do the su -c 'yum update'....there are updates. |
Quote:
dnf install update it will say there is nothing, immediately after, I run su - 'yum update'.....it will have many updates. It is my understanding yum is going away, and dnf is the way to go, however...with the above happening, I'm not sure this is good in my case? |
Quote:
As I have said it's my understanding yum is going away, and I need to start using dnf, however, its doing no updates for me. -------------------- [root@localhost ajfd]# dnf clean all Cleaning repos: fedora rpmfusion-free updates : rpmfusion-free-updates-testing Cleaning up Everything [root@localhost ajfd]# [root@localhost ajfd]# [root@localhost ajfd]# [root@localhost ajfd]# [root@localhost ajfd]# dnf install update RPM Fusion for Fedor 1.3 MB/s | 738 kB 00:00 RPM Fusion for Fedor 728 kB/s | 318 kB 00:00 Fedora 23 - x86_64 - 1.3 MB/s | 14 MB 00:10 Fedora 23 - x86_64 3.9 MB/s | 43 MB 00:11 Last metadata expiration check performed 0:00:34 ago on Fri Dec 18 21:25:22 2015. No package update available. Error: Unable to find a match. [root@localhost ajfd]# [root@localhost ajfd]# [root@localhost ajfd]# [root@localhost ajfd]# dnf install update Last metadata expiration check performed 0:01:17 ago on Fri Dec 18 21:25:22 2015. No package update available. Error: Unable to find a match. [root@localhost ajfd]# |
I guess I could just ask:
I want to keep my Fedora 23 up to date with the latest,, ,,whats the one command line, I can use to do this ??? Keep in mind I do it weekly..at least...sometimes daily, and i'm logged in as root when I do it. thanks James. |
dnf is a drop-in replacement - why do you think you have to install something called update ?.
"dnf update" (su/sudo as desired) works fine although update is deprecated - you have read the manpage ?. There is (at least) a couple of articles on the wiki too. |
I believe the command you are looking for is "dnf update", NOT "dnf install update".
"dnf install update" makes a request to install the package "update", which doesn't exist. |
Quote:
I won't know till there are actually any updates out there to try it on, but running dnf update gives the same output as su -c 'yum update' both give the below, cause there is nothing there Last metadata expiration check performed 0:55:41 ago on Fri Dec 18 21:25:22 2015. Dependencies resolved. Nothing to do. Complete! however I'll say it again, in the past I would run su -c 'dnf update' and get the above then run su -c 'yum update'...immediately after, and get updates. |
Which is what I said...multiple posts ago.
|
Quote:
su -c 'dnf update' got nothing, then run su -c 'yum update' right afterwards...and get updates. I've never used just "dnf update"...when there were actually updates to be had. The next time there are any available, I'll try just "dnf update", hopefully this will work, and I can no longer use yum. Thanks much, James |
you did not read what you posted
Quote:
you told dnf to install the program "update" there is NO program called "update" Code:
su - Code:
su - |
Quote:
But, what about su -c 'dnf update' vs su -c 'yum update' ? Shouldn't these do the same thing?...they did not for me. I can run su -c 'dnf update', get nothing, immediately run su -c 'yum update' and get updates. Thanks James ( |
All times are GMT -5. The time now is 11:44 AM. |