Do we have to use "yum update" command every week or we have to wait more?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can run updates as often as you want or are able, although it's useful not to leave it too long due to the need to install security updates as soon as possible. Daily updates might be a good strategy, but it is really up to you.
If you're worrying about updates causing problems then make regular system backups/images/snapshots so that you can roll back your system if you need to.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
While I agree with the post above; the command below will allow you to check for updates without actually running the "yum update" command, and therefore if there are no updates available, have nothing happen and be returned to the command-line. It will also allow you to see which packages have updates available for them (if any) and it refreshes yum's package cache as well.
Code:
yum check-update
I always run the command above before I run the "yum upgrade" command - I know you mentioned the "yum update" command, but personally I find the "yum upgrade" command to be better.
The difference between the two below:
Code:
update Update a package or packages on your system
upgrade Update packages taking obsoletes into account
I know you mentioned the "yum update" command, but personally I find the "yum upgrade" command to be better.
The difference between the two below:
Code:
update Update a package or packages on your system
upgrade Update packages taking obsoletes into account
The default configuration for yum frequently contains "obsoletes=1", which makes "update" equivalent to "upgrade". Check your /etc/yum.conf to confirm.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by John VV
...also the " update/upgrade" set of commands are for DEBIAN and not redhat
"yum update" and "yum upgrade" ARE valid commands for yum. I used the "yum upgrade" command on my CentOS 7.5 system just yesterday and in addition, the descriptions of the "yum update" and "yum upgrade" commands I copied from yum's help output.
Distro agnostic question. I run upgrades on my home computers (all Ubuntu) whenever I have a minute. Sometimes I'll run updates every other day, others it could be a month between. Just depends. Public facing server though I'd advise almost daily when security updates are concerned. Have to remember though that the more often you run updates you introduce the potential for more instability. Updates can occasionally be bad, kind of a crapshoot sometimes. Is why many servers out there are still running ancient versions of linux. They are afraid to upgrade because of what they might lose.
<-- Not a sysadmin, just a personal opinion.
Last edited by jmgibson1981; 07-16-2018 at 09:09 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.