LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing Fedora updates DNF vs YUM (https://www.linuxquestions.org/questions/linux-newbie-8/installing-fedora-updates-dnf-vs-yum-4175561808/)

timl 12-19-2015 12:55 AM

James, you need to paste exactly what you see on the terminal. Copy the text from your console and then use the quote icon above the message box to show us what you get:

Quote:

[tim@dragon ~]$ su -c 'yum update'
Password:
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'

Last metadata expiration check performed 1:42:46 ago on Sat Dec 19 16:11:46 2015.
Dependencies resolved.
Nothing to do.
Complete!
[tim@dragon ~]$ su -c 'dnf update'
Password:
Last metadata expiration check performed 1:42:56 ago on Sat Dec 19 16:11:46 2015.
Dependencies resolved.
Nothing to do.
Complete!

Janning 12-19-2015 01:00 AM

Quote:

Originally Posted by timl (Post 5466237)
James, you need to paste exactly what you see on the terminal. Copy the text from your console and then use the quote icon above the message box to show us what you get:

What I paste is exactly from the terminal. or am I missing something here?

John VV 12-19-2015 01:12 AM

Quote:

But, what about su -c 'dnf update' vs su -c 'yum update' ?
then this is NOT a "dnf" VS. "yum" issue
but not understanding the "su" command

please see the manual page
Code:

man su
the "-c" option is not really used

also using "su" without the "-" ( this is DIFFERENT than the -c)
will cause update issues

"su" = root but with YOUR normal user $PATH
"su - " = root but with ROOTS!!!! $PATH
( "su - " is a shortcut for "su -l root " )

the two are very different

Janning 12-19-2015 01:52 AM

Quote:

Originally Posted by John VV (Post 5466241)
then this is NOT a "dnf" VS. "yum" issue
but not understanding the "su" command

please see the manual page
Code:

man su
the "-c" option is not really used

also using "su" without the "-" ( this is DIFFERENT than the -c)
will cause update issues

"su" = root but with YOUR normal user $PATH
"su - " = root but with ROOTS!!!! $PATH
( "su - " is a shortcut for "su -l root " )

the two are very different

Hi,
Sorry to be a pain...I'm still not totally getting it. From the very little I know, I never liked using
su -c 'yum update' (I got it off this forum months ago)
to get updates...but, it is the only thing that works, ..so far unless, when new updates are available, I use dnf update and does it for me.

So, (keeping in mind, I open a terminal, and first thing I do is a su root and supply password)
dnf update should do the same thing as yum update ? (realizing yum is depreciated and directs to dnf?)
So basically dnf update = yum update
but, does su -c 'dnf update' do the same as su -c 'yum update' ?(realizing from what you say, this entire command phrase is wrong, I'm already in root so no need)


I know, I know read man su, but, for me, seeing specific examples work better .

timl 12-19-2015 03:43 AM

Quote:

So, (keeping in mind, I open a terminal, and first thing I do is a su root and supply password)
dnf update should do the same thing as yum update ? (realizing yum is depreciated and directs to dnf?)
So basically dnf update = yum update
Yus

Quote:

but, does su -c 'dnf update' do the same as su -c 'yum update' ?(realizing from what you say, this entire command phrase is wrong, I'm already in root so no need)
Yus


All times are GMT -5. The time now is 05:09 PM.