Solved

sudo yum update and sudo yum update -y

Posted on 2011-03-03
4
944 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
ID: 35028192
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
ID: 35028205
To run yum, your yum repository should be properly configured.
0
 
LVL 35

Expert Comment

by:torimar
ID: 35028286
'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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

867 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

21 Experts available now in Live!

Get 1:1 Help Now