LinuxQuestions.org
Help answer threads with 0 replies.
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 09-01-2016, 09:23 AM   #1
sysmicuser
Member
 
Registered: Mar 2010
Posts: 352

Rep: Reputation: 0
Slective update/upgrade in yum update -y command


Good Folks,

I have made a peculiar observation that when I run
Code:
sudo yum update -y
My puppet agent as well as docker engine got update/upgraded.

Is there any way to list which packages are set to update/upgrade and choose only the ones which we require?

Also what is the difference between
Code:
yum update
and

Code:
yum upgrade
commands?

Would love to learn from learned Guru's
 
Old 09-01-2016, 09:51 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,356

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by sysmicuser View Post
Good Folks,

I have made a peculiar observation that when I run
Code:
sudo yum update -y
My puppet agent as well as docker engine got update/upgraded.
You told yum to update everything and not prompt you, so why it peculiar that it updated multiple packages?

Quote:
Originally Posted by sysmicuser View Post
Is there any way to list which packages are set to update/upgrade and choose only the ones which we require?
This will list packages that have updates available:
Code:
sudo yum check-update
then to update only <packagename>
Code:
sudo yum update <packagename>
Note: You can use wildcards when specifying <packagename>

Last edited by TenTenths; 09-01-2016 at 09:53 AM. Reason: I can't spell!!! :(
 
Old 09-02-2016, 07:04 PM   #3
themanwhowas
Member
 
Registered: Nov 2005
Distribution: CentOS 5, Fedora 23
Posts: 216

Rep: Reputation: 29
Upgrade is the same as update --obsoletes however depending on your distro update may actually be update --obsoletes anyway so usually but not always they are the same
 
Old 09-02-2016, 08:37 PM   #4
sysmicuser
Member
 
Registered: Mar 2010
Posts: 352

Original Poster
Rep: Reputation: 0
Thanks Guys,

Is there any way to revert back the update performed by yum update ?
 
Old 09-02-2016, 09:40 PM   #5
sysmicuser
Member
 
Registered: Mar 2010
Posts: 352

Original Poster
Rep: Reputation: 0
Got it, yum history then yum history undo <transaction id>
 
  


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
Do you run yum update / upgrade regularly or not? AdultFoundry Linux - Newbie 5 10-30-2015 02:55 PM
Ghost and apt-get/yum update/upgrade sumncguy Linux - Server 2 03-01-2015 04:07 PM
Issue with yum update while doing Redhat upgrade from 5.2 to 5.6 vinayagam Linux - Server 1 08-18-2011 06:49 AM
How does yum (or rpm or other pm) update/upgrade in use packages engineman Linux - Software 2 09-26-2007 12:06 PM
Yum upgrade/update question stefaandk Linux - Newbie 1 06-23-2005 12:04 AM


All times are GMT -5. The time now is 05:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration