LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-14-2018, 04:40 PM   #1
yeknafar
LQ Newbie
 
Registered: Jul 2018
Posts: 11

Rep: Reputation: Disabled
Do we have to use "yum update" command every week or we have to wait more?


Hello

Do we have to use "yum update" command every week or we have to wait more?

Does the updates can cause problems? How I have to prevent the problems that the updates can cause?


Thanks
 
Old 07-14-2018, 05:54 PM   #2
mbzn
LQ Newbie
 
Registered: Dec 2007
Location: Secunda, south africa
Distribution: MX Linux 17.1
Posts: 25

Rep: Reputation: 1
This depends on the distro and repositories you're using. If you stick to stable you should have minimal problems with updates.
 
Old 07-14-2018, 06:08 PM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
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.
 
Old 07-15-2018, 08:00 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
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
 
Old 07-15-2018, 09:40 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,716

Rep: Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191
Quote:
Originally Posted by jsbjsb001 View Post
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.
 
Old 07-15-2018, 09:55 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
there is nothing installed until you hit the " y " key to tell yum to install

or hit the "n" to tell it NO do not install


also the " update/upgrade" set of commands are for DEBIAN and not redhat
 
Old 07-15-2018, 10:25 AM   #7
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by John VV View Post
...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.

CentOS is basically Red Hat without the branding.
 
Old 07-15-2018, 05:28 PM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I run an upgrade about once a month. But if you're running a public server, you might want to run it more often.
 
Old 07-16-2018, 09:07 AM   #9
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,017

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora "yum update" command? CrazyGuy158 Fedora 2 02-23-2012 07:20 AM
Difference betweenn "yum install" and "yum update" john lee Linux - Newbie 1 02-11-2008 11:26 PM
"My posts" and "My threads" should be exempt from the wait time before searches vharishankar LQ Suggestions & Feedback 6 03-06-2006 08:10 PM
Linux "Wait" command? renegadeavenger Fedora 10 05-28-2005 05:22 PM
Update Fedora2 using "yum update" problem chinaundead Fedora 9 04-27-2004 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration