Solved

sudo yum update and sudo yum update -y

Posted on 2011-03-03
4
998 Views
Last Modified: 2012-05-11
what is effect of running above command ?
0
Comment
Question by:aashee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

695 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