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
Solved

sudo yum update and sudo yum update -y

Posted on 2011-03-03
4
960 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux redhat 7.2 10 89
ignore other .htaccess 2 58
RHEL 6.7 Gnome Desktop on VMware 6 VM 9 68
When trying to install php-fpm on CentOS 7 - GPG error 2 45
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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 …
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…
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.

828 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