Solved

sudo yum update and sudo yum update -y

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINUX backups with VEEAM 8 151
centos commands 6 88
rsyslog raw message 4 36
edit firefox cookie settings via shell script on ubuntu 14? 1 33
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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 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.:

740 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