LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2015, 06:41 PM   #1
Janning
Member
 
Registered: Nov 2014
Posts: 66

Rep: Reputation: Disabled
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
 
Old 12-18-2015, 08:07 PM   #2
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
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:
[tim@dragon ~]$ sudo dnf install update
[sudo] password for tim:
Last metadata expiration check performed 2:54:24 ago on Sat Dec 19 10:09:46 2015.
No package update available.
Error: Unable to find a match.
Indicates that there is no package called update

Quote:
[tim@dragon ~]$ sudo dnf update
Last metadata expiration check performed 2:54:51 ago on Sat Dec 19 10:09:46 2015.
Dependencies resolved.
Nothing to do.
Complete!
Nothing to do because I did an update this morning. However if you try that command (you can still use "su -c") it will keep your system updated
 
Old 12-18-2015, 08:25 PM   #3
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
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.
 
Old 12-18-2015, 08:56 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
When in doubt, try "dnf clean all" as a simple first fix.
 
Old 12-18-2015, 09:22 PM   #5
Janning
Member
 
Registered: Nov 2014
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by timl View Post
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:

Indicates that there is no package called update
Nothing to do because I did an update this morning. However if you try that command (you can still use "su -c") it will keep your system updated
U do not need sudo, I'm logged in as root. however I tried sudo dnf install update it did the same thing as su dnf install update
...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.
 
Old 12-18-2015, 09:26 PM   #6
Janning
Member
 
Registered: Nov 2014
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Timothy Miller View Post
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.
as I stated above....I can do a
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?
 
Old 12-18-2015, 09:29 PM   #7
Janning
Member
 
Registered: Nov 2014
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
When in doubt, try "dnf clean all" as a simple first fix.
Hi, I did a dnf clean all.....see below. afterwards the first dnf install update did a couple of things...then back to same as before..nothing
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]#
 
Old 12-18-2015, 09:30 PM   #8
Janning
Member
 
Registered: Nov 2014
Posts: 66

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-18-2015, 09:40 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 12-18-2015, 09:49 PM   #10
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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.
 
Old 12-18-2015, 10:22 PM   #11
Janning
Member
 
Registered: Nov 2014
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpollard View Post
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.
I believe you are correct...this may be the answer I was looking for!
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.
 
Old 12-18-2015, 11:03 PM   #12
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Which is what I said...multiple posts ago.
 
Old 12-18-2015, 11:12 PM   #13
Janning
Member
 
Registered: Nov 2014
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Timothy Miller View Post
Which is what I said...multiple posts ago.
Ah, yes you did. I missed that sorry. But, (repeating I know),,,for weeks I have always run
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
 
Old 12-18-2015, 11:26 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you did not read what you posted
Quote:
dnf install update
su - 'yum update'
the dnf command is way off

you told dnf to install the program "update"

there is NO program called "update"


Code:
su -
dnf update
all yum is in 23 is a simlink to dnf

Code:
su -
cd /usr/bin
ls -la yum
 
Old 12-18-2015, 11:33 PM   #15
Janning
Member
 
Registered: Nov 2014
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
you did not read what you posted

the dnf command is way off

you told dnf to install the program "update"

there is NO program called "update"


Code:
su -
dnf update
all yum is in 23 is a simlink to dnf

Code:
su -
cd /usr/bin
ls -la yum
Right I fintally get the dnf install update issue I had. (I'm new to Linux)
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 (
 
  


Reply

Tags
yum



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 22 will use DNF instead of yum szboardstretcher Fedora 17 07-27-2015 09:17 PM
LXer: Fedora 22 beta status, future of DNF and yum LXer Syndicated Linux News 0 04-10-2015 07:41 PM
LXer: F21 Alpha & schedule, Test Days, Fedora Workstation, DNF updates, and FPL in the news LXer Syndicated Linux News 0 09-05-2014 09:40 PM
LXer: DNF Still Advancing As Experimental Yum For Fedora LXer Syndicated Linux News 0 05-18-2013 11:17 PM
got a Fedora 9 indication that yum updates were available, but there were no updates landonmkelsey Linux - Software 12 02-08-2009 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration