What is the difference between Linux yum upgrade, yum update?

Source: Internet
Author: User
Tags curl globs centos iptables openldap rsyslog

On the internet to see someone like the following summary

Yum-y Update

Upgrade all packages, change software settings and system settings, upgrade the system version kernel

Yum-y Upgrade

Upgrades all packages, does not change software settings and system settings, System version upgrades, the kernel does not change

Test the difference between the so-called Yum upgrade and the Yum update:

Basic information:

[Root@localhost ~]# Uname-a
Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 00:31:26 UTC 2013 x86_64 x86_64 x86_64 gnu/linux
[Root@localhost ~]# Cat/etc/redhat-release
CentOS Release 6.4 (Final)

Mans Yum:

--obsoletes:this option only has affect for a update, it enables Yum´s obsoletes. For more information the update command above.


Configuration option:obsoletes


Upgrade:is the same as the update command with the--OBSOLETES flag set. The update for more details.


Update:if run without any packages, update would update every currently installed. If one or more packages or package globs are specified, Yum would only update the listed packages. While updating Packages,yum would ensure that all dependencies are satisfied. (Specifying package names for more information)


If the packages or globs specified match to packages which are not currently installed then update would not install th Em. Update operates on groups, files, provides and filelists just like the "Install" command.


If The main obsoletes configure option is True (default) or the--obsoletes flag is present Yum would include package Obsoletes in the calculations-this makes it better for distro-version changes to Example:upgrading 8.0 to Somelinux 9.


Note This "Update" works on installed packages-A-there are no matches does it look for available Es. The difference is most noticeable to do "update Foo-1-2" which'll act exactly as "update Foo" if Foo-1-2 is instal Led. You can use the "update-to" if you ' d prefer so nothing happen in the above case.

Yum Upgrade:

Installed:

  kernel.x86_64 0:2.6.32-504.12.2.el6                                                                                                    

Dependency installed:
libtasn1.x86_64 0:2.3-6.el6_5 p11-kit.x86_64 0:0.18.5-2.el6_5.2 p11-kit-trust.x86_64 0:0.18.5-2.el6_5.2
pkgconfig.x86_64 1:0.23-9.1.el6 shared-mime-info.x86_64 0:0.70-6.el6

Updated:


audit.x86_64 0:2.3.7-5.el6 audit-libs.x86_64 0:2.3.7-5.el6


authconfig.x86_64 0:6.1.12-19.el6 bash.x86_64 0:4.1.2-29.el6


binutils.x86_64 0:2.20.51.0.2-5.42.el6 Ca-certificates.noarch 0:2014.1.98-65.1.el6


centos-release.x86_64 0:6-6.el6.centos.12.2 chkconfig.x86_64 0:1.3.49.3-2.el6_4.1


coreutils.x86_64 0:8.4-37.el6 coreutils-libs.x86_64 0:8.4-37.el6


cpio.x86_64 0:2.10-12.el6_5 cronie.x86_64 0:1.4.4-12.el6


cronie-anacron.x86_64 0:1.4.4-12.el6 cryptsetup-luks.x86_64 0:1.2.0-11.el6


cryptsetup-luks-libs.x86_64 0:1.2.0-11.el6 curl.x86_64 0:7.19.7-40.el6_6.4


cyrus-sasl.x86_64 0:2.1.23-15.el6_6.1 cyrus-sasl-lib.x86_64 0:2.1.23-15.el6_6.1


db4.x86_64 0:4.7.25-18.el6_4 db4-utils.x86_64 0:4.7.25-18.el6_4


dbus-glib.x86_64 0:0.86-6.el6 device-mapper.x86_64 0:1.02.90-2.el6_6.1


device-mapper-event.x86_64 0:1.02.90-2.el6_6.1 device-mapper-event-libs.x86_64 0:1.02.90-2.el6_6.1


device-mapper-libs.x86_64 0:1.02.90-2.el6_6.1 device-mapper-multipath.x86_64 0:0.4.9-80.el6_6.3


device-mapper-multipath-libs.x86_64 0:0.4.9-80.el6_6.3 device-mapper-persistent-data.x86_64 0:0.3.2-1.el6


dhclient.x86_64 12:4.1.1-43.p1.el6.centos.1 dhcp-common.x86_64 12:4.1.1-43.p1.el6.centos.1


Dracut.noarch 0:004-356.el6_6.1 Dracut-kernel.noarch 0:004-356.el6_6.1


e2fsprogs.x86_64 0:1.41.12-21.el6 e2fsprogs-libs.x86_64 0:1.41.12-21.el6


efibootmgr.x86_64 0:0.5.4-12.el6 elfutils-libelf.x86_64 0:0.158-3.2.el6


ethtool.x86_64 2:3.5-5.el6 file.x86_64 0:5.04-21.el6


file-libs.x86_64 0:5.04-21.el6 glib2.x86_64 0:2.28.8-4.el6


gnupg2.x86_64 0:2.0.14-8.el6 grep.x86_64 0:2.6.3-6.el6


grub.x86_64 1:0.97-93.el6 grubby.x86_64 0:7.0.15-7.el6


gzip.x86_64 0:1.3.12-22.el6 Hwdata.noarch 0:0.233-11.1.el6


initscripts.x86_64 0:9.03.46-1.el6.centos.1 iproute.x86_64 0:2.6.32-33.el6_6


iptables.x86_64 0:1.4.7-14.el6 iptables-ipv6.x86_64 0:1.4.7-14.el6


iputils.x86_64 0:20071127-17.el6_4.2 iscsi-initiator-utils.x86_64 0:6.2.0.873-13.el6


Kernel-firmware.noarch 0:2.6.32-504.12.2.el6 keyutils-libs.x86_64 0:1.4-5.el6


kpartx.x86_64 0:0.4.9-80.el6_6.3 krb5-libs.x86_64 0:1.10.3-33.el6


less.x86_64 0:436-13.el6 libblkid.x86_64 0:2.17.2-12.18.el6


libcom_err.x86_64 0:1.41.12-21.el6 libcurl.x86_64 0:7.19.7-40.el6_6.4


libdrm.x86_64 0:2.4.52-4.el6 libgcrypt.x86_64 0:1.4.5-11.el6_4


libpciaccess.x86_64 0:0.13.3-0.1.el6 libselinux.x86_64 0:2.0.94-5.8.el6


libselinux-utils.x86_64 0:2.0.94-5.8.el6 libss.x86_64 0:1.41.12-21.el6


libssh2.x86_64 0:1.4.2-1.el6_6.1 libudev.x86_64 0:147-2.57.el6


libuuid.x86_64 0:2.17.2-12.18.el6 libxml2.x86_64 0:2.7.6-17.el6_6.1


logrotate.x86_64 0:3.7.8-17.el6 lvm2.x86_64 0:2.02.111-2.el6_6.1


lvm2-libs.x86_64 0:2.02.111-2.el6_6.1 mdadm.x86_64 0:3.3-6.el6_6.1


module-init-tools.x86_64 0:3.9-24.el6 mysql-libs.x86_64 0:5.1.73-3.el6_5


nspr.x86_64 0:4.10.6-1.el6_5 nss.x86_64 0:3.16.2.3-3.el6_6


nss-softokn.x86_64 0:3.14.3-22.el6_6 nss-softokn-freebl.x86_64 0:3.14.3-22.el6_6


nss-sysinit.x86_64 0:3.16.2.3-3.el6_6 nss-tools.x86_64 0:3.16.2.3-3.el6_6


nss-util.x86_64 0:3.16.2.3-2.el6_6 openldap.x86_64 0:2.4.39-8.el6


openssh.x86_64 0:5.3p1-104.el6_6.1 openssh-clients.x86_64 0:5.3p1-104.el6_6.1


openssh-server.x86_64 0:5.3p1-104.el6_6.1 pam.x86_64 0:1.1.1-20.el6


pciutils-libs.x86_64 0:3.1.10-4.el6 plymouth.x86_64 0:0.8.3-27.el6.centos.1


plymouth-core-libs.x86_64 0:0.8.3-27.el6.centos.1 plymouth-scripts.x86_64 0:0.8.3-27.el6.centos.1


policycoreutils.x86_64 0:2.0.83-19.47.el6_6.1 postfix.x86_64 2:2.6.6-6.el6_5


procps.x86_64 0:3.2.8-30.el6 psmisc.x86_64 0:22.6-19.el6_5


python.x86_64 0:2.6.6-52.el6 python-libs.x86_64 0:2.6.6-52.el6


Python-urlgrabber.noarch 0:3.9.1-9.el6 rpm.x86_64 0:4.8.0-38.el6_6


rpm-libs.x86_64 0:4.8.0-38.el6_6 rpm-python.x86_64 0:4.8.0-38.el6_6


rsyslog.x86_64 0:5.8.10-10.el6_6 Selinux-policy.noarch 0:3.7.19-260.el6_6.2


Selinux-policy-targeted.noarch 0:3.7.19-260.el6_6.2 Setup.noarch 0:2.8.14-20.el6_4.1


shadow-utils.x86_64 2:4.1.4.2-19.el6 sudo.x86_64 0:1.8.6p3-15.el6


System-config-firewall-base.noarch 0:1.2.27-7.2.el6_6 sysvinit-tools.x86_64 0:2.87-5.dsf.el6


Tzdata.noarch 0:2015a-1.el6 udev.x86_64 0:147-2.57.el6


upstart.x86_64 0:0.6.5-13.el6_5.3 util-linux-ng.x86_64 0:2.17.2-12.18.el6


xfsprogs.x86_64 0:3.1.1-16.el6 xz-libs.x86_64 0:4.999.9-0.5.beta.20091007git.el6


Yum.noarch 0:3.2.29-60.el6.centos Yum-plugin-fastestmirror.noarch 0:1.1.30-30.el6

complete!

[Root@localhost ~]# reboot
[Root@localhost ~]# Uname-a
Linux localhost.localdomain 2.6.32-504.12.2.el6.x86_64 #内核升级了!
[Root@localhost ~]# Cat/etc/redhat-release
CentOS Release 6.6 (Final)


Yum Update:

Installed:
  kernel.x86_64 0:2.6.32-504.12.2.el6                                                                                                    

Dependency installed:
libtasn1.x86_64 0:2.3-6.el6_5 p11-kit.x86_64 0:0.18.5-2.el6_5.2 p11-kit-trust.x86_64 0:0.18.5-2.el6_5.2
pkgconfig.x86_64 1:0.23-9.1.el6 shared-mime-info.x86_64 0:0.70-6.el6

Updated:


audit.x86_64 0:2.3.7-5.el6 audit-libs.x86_64 0:2.3.7-5.el6


authconfig.x86_64 0:6.1.12-19.el6 bash.x86_64 0:4.1.2-29.el6


binutils.x86_64 0:2.20.51.0.2-5.42.el6 Ca-certificates.noarch 0:2014.1.98-65.1.el6


centos-release.x86_64 0:6-6.el6.centos.12.2 chkconfig.x86_64 0:1.3.49.3-2.el6_4.1


coreutils.x86_64 0:8.4-37.el6 coreutils-libs.x86_64 0:8.4-37.el6


cpio.x86_64 0:2.10-12.el6_5 cronie.x86_64 0:1.4.4-12.el6


cronie-anacron.x86_64 0:1.4.4-12.el6 cryptsetup-luks.x86_64 0:1.2.0-11.el6


cryptsetup-luks-libs.x86_64 0:1.2.0-11.el6 curl.x86_64 0:7.19.7-40.el6_6.4


cyrus-sasl.x86_64 0:2.1.23-15.el6_6.1 cyrus-sasl-lib.x86_64 0:2.1.23-15.el6_6.1


db4.x86_64 0:4.7.25-18.el6_4 db4-utils.x86_64 0:4.7.25-18.el6_4


dbus-glib.x86_64 0:0.86-6.el6 device-mapper.x86_64 0:1.02.90-2.el6_6.1


device-mapper-event.x86_64 0:1.02.90-2.el6_6.1 device-mapper-event-libs.x86_64 0:1.02.90-2.el6_6.1


device-mapper-libs.x86_64 0:1.02.90-2.el6_6.1 device-mapper-multipath.x86_64 0:0.4.9-80.el6_6.3


device-mapper-multipath-libs.x86_64 0:0.4.9-80.el6_6.3 device-mapper-persistent-data.x86_64 0:0.3.2-1.el6


dhclient.x86_64 12:4.1.1-43.p1.el6.centos.1 dhcp-common.x86_64 12:4.1.1-43.p1.el6.centos.1


Dracut.noarch 0:004-356.el6_6.1 Dracut-kernel.noarch 0:004-356.el6_6.1


e2fsprogs.x86_64 0:1.41.12-21.el6 e2fsprogs-libs.x86_64 0:1.41.12-21.el6


efibootmgr.x86_64 0:0.5.4-12.el6 elfutils-libelf.x86_64 0:0.158-3.2.el6


ethtool.x86_64 2:3.5-5.el6 file.x86_64 0:5.04-21.el6


file-libs.x86_64 0:5.04-21.el6 glib2.x86_64 0:2.28.8-4.el6


gnupg2.x86_64 0:2.0.14-8.el6 grep.x86_64 0:2.6.3-6.el6


grub.x86_64 1:0.97-93.el6 grubby.x86_64 0:7.0.15-7.el6


gzip.x86_64 0:1.3.12-22.el6 Hwdata.noarch 0:0.233-11.1.el6


initscripts.x86_64 0:9.03.46-1.el6.centos.1 iproute.x86_64 0:2.6.32-33.el6_6


iptables.x86_64 0:1.4.7-14.el6 iptables-ipv6.x86_64 0:1.4.7-14.el6


iputils.x86_64 0:20071127-17.el6_4.2 iscsi-initiator-utils.x86_64 0:6.2.0.873-13.el6


Kernel-firmware.noarch 0:2.6.32-504.12.2.el6 keyutils-libs.x86_64 0:1.4-5.el6


kpartx.x86_64 0:0.4.9-80.el6_6.3 krb5-libs.x86_64 0:1.10.3-33.el6


less.x86_64 0:436-13.el6 libblkid.x86_64 0:2.17.2-12.18.el6


libcom_err.x86_64 0:1.41.12-21.el6 libcurl.x86_64 0:7.19.7-40.el6_6.4


libdrm.x86_64 0:2.4.52-4.el6 libgcrypt.x86_64 0:1.4.5-11.el6_4


libpciaccess.x86_64 0:0.13.3-0.1.el6 libselinux.x86_64 0:2.0.94-5.8.el6


libselinux-utils.x86_64 0:2.0.94-5.8.el6 libss.x86_64 0:1.41.12-21.el6


libssh2.x86_64 0:1.4.2-1.el6_6.1 libudev.x86_64 0:147-2.57.el6


libuuid.x86_64 0:2.17.2-12.18.el6 libxml2.x86_64 0:2.7.6-17.el6_6.1


logrotate.x86_64 0:3.7.8-17.el6 lvm2.x86_64 0:2.02.111-2.el6_6.1


lvm2-libs.x86_64 0:2.02.111-2.el6_6.1 mdadm.x86_64 0:3.3-6.el6_6.1


module-init-tools.x86_64 0:3.9-24.el6 mysql-libs.x86_64 0:5.1.73-3.el6_5


nspr.x86_64 0:4.10.6-1.el6_5 nss.x86_64 0:3.16.2.3-3.el6_6


nss-softokn.x86_64 0:3.14.3-22.el6_6 nss-softokn-freebl.x86_64 0:3.14.3-22.el6_6


nss-sysinit.x86_64 0:3.16.2.3-3.el6_6 nss-tools.x86_64 0:3.16.2.3-3.el6_6


nss-util.x86_64 0:3.16.2.3-2.el6_6 openldap.x86_64 0:2.4.39-8.el6


openssh.x86_64 0:5.3p1-104.el6_6.1 openssh-clients.x86_64 0:5.3p1-104.el6_6.1


openssh-server.x86_64 0:5.3p1-104.el6_6.1 pam.x86_64 0:1.1.1-20.el6


pciutils-libs.x86_64 0:3.1.10-4.el6 plymouth.x86_64 0:0.8.3-27.el6.centos.1


plymouth-core-libs.x86_64 0:0.8.3-27.el6.centos.1 plymouth-scripts.x86_64 0:0.8.3-27.el6.centos.1


policycoreutils.x86_64 0:2.0.83-19.47.el6_6.1 postfix.x86_64 2:2.6.6-6.el6_5


procps.x86_64 0:3.2.8-30.el6 psmisc.x86_64 0:22.6-19.el6_5


python.x86_64 0:2.6.6-52.el6 python-libs.x86_64 0:2.6.6-52.el6


Python-urlgrabber.noarch 0:3.9.1-9.el6 rpm.x86_64 0:4.8.0-38.el6_6


rpm-libs.x86_64 0:4.8.0-38.el6_6 rpm-python.x86_64 0:4.8.0-38.el6_6


rsyslog.x86_64 0:5.8.10-10.el6_6 Selinux-policy.noarch 0:3.7.19-260.el6_6.2


Selinux-policy-targeted.noarch 0:3.7.19-260.el6_6.2 Setup.noarch 0:2.8.14-20.el6_4.1


shadow-utils.x86_64 2:4.1.4.2-19.el6 sudo.x86_64 0:1.8.6p3-15.el6


System-config-firewall-base.noarch 0:1.2.27-7.2.el6_6 sysvinit-tools.x86_64 0:2.87-5.dsf.el6


Tzdata.noarch 0:2015a-1.el6 udev.x86_64 0:147-2.57.el6


upstart.x86_64 0:0.6.5-13.el6_5.3 util-linux-ng.x86_64 0:2.17.2-12.18.el6


xfsprogs.x86_64 0:3.1.1-16.el6 xz-libs.x86_64 0:4.999.9-0.5.beta.20091007git.el6


Yum.noarch 0:3.2.29-60.el6.centos Yum-plugin-fastestmirror.noarch 0:1.1.30-30.el6

complete!
[Root@localhost ~]# Uname-a
Linux localhost.localdomain 2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 22:03:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[Root@localhost ~]# Cat/etc/redhat-release
CentOS Release 6.6 (Final)

Conclusion: Centos6.4 upgrade to Centos6.6 looks like yum update and Yum upgrade can be

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.