Solved

sudo yum update and sudo yum update -y

Posted on 2011-03-03
4
937 Views
Last Modified: 2012-05-11
what is effect of running above command ?
0
Comment
Question by:aashee
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
Comment Utility
sudo is used if you are not root.  It gives you root privileges

update would update the packages you want to update.

-y option is for 'yes'.  If you don't have it, it asks you whether you want to incorporate the changes, install the packages, etc.
0
 
LVL 31

Expert Comment

by:farzanj
Comment Utility
To run yum, your yum repository should be properly configured.
0
 
LVL 35

Expert Comment

by:torimar
Comment Utility
'sudo' will only be available if the sudo command has been properly installed and configured. Not on every system will that be the case.

But you can use the 'su -c' command to replace it. This should work on practically every system for elevating your privileges. The above commands would then read:

su -c 'yum update'
su -c 'yum update -y'

More on the 'yum' command can be found in the manuals: http://www.centos.org/docs/5/html/yum/
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now