Unsaon Pagsusi ug Pag-instalar sa mga Update Sa CentOS ug RHEL
Ang pag-instalar og mga update alang sa software packages o ang kernel mismo, usa ka girekomendar kaayo ug mapuslanon nga buluhaton alang sa mga administrador sa sistema; labi na kung bahin sa mga update sa seguridad o mga patch. Samtang nadiskubrehan ang mga kahuyangan sa seguridad, ang naapektuhan nga software kinahanglan nga ma-update aron maminusan ang bisan unsang potensyal nga peligro sa seguridad sa tibuuk nga sistema.
Kung wala nimo ma-configure ang imong sistema aron i-install ang mga patch sa seguridad o awtomatiko nga pag-update, nan kinahanglan nimo nga buhaton kini nga mano-mano. Niini nga artikulo, ipakita namo kanimo kung giunsa pagsusi ug pag-install ang mga update sa software sa mga distribusyon sa CentOS ug RHEL.
Aron masusi ang bisan unsang mga update nga magamit para sa imong na-install nga mga pakete, gamita ang YUM package manager nga adunay check-update subcommand; kini makatabang kanimo nga makita ang tanan nga mga update sa package gikan sa tanan nga mga repository kung adunay magamit.
# yum check-update
Loaded plugins: changelog, fastestmirror base | 3.6 kB 00:00:00 epel/x86_64/metalink | 22 kB 00:00:00 epel | 4.3 kB 00:00:00 extras | 3.4 kB 00:00:00 mariadb | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/2): epel/x86_64/updateinfo | 842 kB 00:00:15 (2/2): epel/x86_64/primary_db | 6.1 MB 00:00:00 Loading mirror speeds from cached hostfile * base: mirrors.linode.com * epel: mirror.vorboss.net * extras: mirrors.linode.com * updates: mirrors.linode.com MariaDB-client.x86_64 10.1.28-1.el7.centos mariadb MariaDB-common.x86_64 10.1.28-1.el7.centos mariadb MariaDB-server.x86_64 10.1.28-1.el7.centos mariadb MariaDB-shared.x86_64 10.1.28-1.el7.centos mariadb NetworkManager.x86_64 1:1.8.0-11.el7_4 updates NetworkManager-adsl.x86_64 1:1.8.0-11.el7_4 updates ....
Aron ma-update ang usa ka pakete sa pinakabag-o nga magamit nga bersyon, padagana ang mando sa ubos. Niini nga pananglitan, si yum mosulay sa pag-update sa httpd nga pakete.
# yum update httpd
Loaded plugins: changelog, fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.linode.com * epel: mirror.vorboss.net * extras: mirrors.linode.com * updates: mirrors.linode.com Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.4.6-45.el7.centos.4 will be updated --> Processing Dependency: httpd = 2.4.6-45.el7.centos.4 for package: 1:mod_ssl-2.4.6-45.el7.centos.4.x86_64 ---> Package httpd.x86_64 0:2.4.6-67.el7.centos.6 will be an update --> Processing Dependency: httpd-tools = 2.4.6-67.el7.centos.6 for package: httpd-2.4.6-67.el7.centos.6.x86_64 --> Running transaction check ---> Package httpd-tools.x86_64 0:2.4.6-45.el7.centos.4 will be updated ---> Package httpd-tools.x86_64 0:2.4.6-67.el7.centos.6 will be an update ---> Package mod_ssl.x86_64 1:2.4.6-45.el7.centos.4 will be updated ---> Package mod_ssl.x86_64 1:2.4.6-67.el7.centos.6 will be an update ....
Aron ma-update ang usa ka grupo sa pakete, ang mosunod nga sugo mag-update sa imong mga himan sa pag-uswag (C ug C++ compiler plus may kalabutan nga mga utilities).
# yum update "Development Tools"
Loaded plugins: changelog, fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.linode.com * epel: mirror.vorboss.net * extras: mirrors.linode.com * updates: mirrors.linode.com ...
Aron ma-upgrade ang tanan nga software sa imong sistema ingon man ang ilang mga dependency sa pinakabag-o nga bersyon, gamita kini nga mando:
# yum update
Loaded plugins: changelog, fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.linode.com * epel: mirror.vorboss.net * extras: mirrors.linode.com * updates: mirrors.linode.com Resolving Dependencies --> Running transaction check ---> Package MariaDB-client.x86_64 0:10.1.23-1.el7.centos will be updated ---> Package MariaDB-client.x86_64 0:10.1.28-1.el7.centos will be an update ---> Package MariaDB-common.x86_64 0:10.1.23-1.el7.centos will be updated ---> Package MariaDB-common.x86_64 0:10.1.28-1.el7.centos will be an update ---> Package MariaDB-server.x86_64 0:10.1.23-1.el7.centos will be updated ---> Package MariaDB-server.x86_64 0:10.1.28-1.el7.centos will be an update ---> Package MariaDB-shared.x86_64 0:10.1.23-1.el7.centos will be updated ---> Package MariaDB-shared.x86_64 0:10.1.28-1.el7.centos will be an update ---> Package NetworkManager.x86_64 1:1.4.0-19.el7_3 will be obsoleted ---> Package NetworkManager.x86_64 1:1.8.0-11.el7_4 will be obsoleting ....
Mao na! Mahimo nimong basahon kining mosunod nga may kalabotan nga mga artikulo.
- Unsaon Pag-install o Pag-upgrade sa Pinakabag-o nga Bersyon sa Kernel sa CentOS 7
- Unsaon Pagtangtang sa Daang Wala Gigamit nga Kernel sa CentOS, RHEL ug Fedora
- Unsaon Pag-install sa Mga Update sa Seguridad Awtomatikong sa Debian ug Ubuntu
Kanunay nga ipadayon ang imong sistema sa Linux nga labing bag-o sa labing bag-o nga seguridad ug mga update sa kinatibuk-ang pakete. Aduna ka bay mga pangutana nga ipangutana, gamita ang porma sa komentaryo sa ubos alang niana.