LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2015, 12:55 AM   #16
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 680

Rep: Reputation: 150Reputation: 150

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!
 
Old 12-19-2015, 01:00 AM   #17
Janning
Member
 
Registered: Nov 2014
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by timl View Post
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?
 
Old 12-19-2015, 01:12 AM   #18
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,452

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
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
 
Old 12-19-2015, 01:52 AM   #19
Janning
Member
 
Registered: Nov 2014
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
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 .
 
Old 12-19-2015, 03:43 AM   #20
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 680

Rep: Reputation: 150Reputation: 150
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
 
  


Reply

Tags
yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration