Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
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?
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]#
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.
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.
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
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 (
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.