CentOS और RHEL पर अपडेट की जाँच और स्थापना कैसे करें
सॉफ़्टवेयर पैकेज या कर्नेल के लिए खुद को अपडेट स्थापित करना, सिस्टम प्रशासकों के लिए एक अत्यधिक अनुशंसित और लाभकारी कार्य है; खासकर जब यह सुरक्षा अद्यतन या पैच की बात आती है। जबकि सुरक्षा कमजोरियों की खोज की जाती है, प्रभावित सॉफ्टवेयर को अपडेट किया जाना चाहिए ताकि पूरे सिस्टम में किसी भी संभावित सुरक्षा जोखिम को कम किया जा सके।
यदि आपने सुरक्षा पैच या अपडेट को स्वचालित रूप से स्थापित करने के लिए अपने सिस्टम को कॉन्फ़िगर नहीं किया है, तो आपको इसे मैन्युअल रूप से करने की आवश्यकता है। इस लेख में, हम आपको दिखाएंगे कि कैसे CentOS और RHEL वितरण पर सॉफ़्टवेयर अपडेट की जाँच करें और इंस्टॉल करें।
अपने इंस्टॉल किए गए पैकेजों के लिए उपलब्ध किसी भी अपडेट की जांच करने के लिए, चेक-अपडेट सबकमांड के साथ YUM पैकेज मैनेजर का उपयोग करें; यह आपको सभी रिपॉजिटरी से सभी पैकेज अपडेट देखने में मदद करता है यदि कोई उपलब्ध हो।
# 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 ....
एकल पैकेज को नवीनतम उपलब्ध संस्करण में अपडेट करने के लिए, नीचे दिए गए कमांड को चलाएं। इस उदाहरण में, yum httpd पैकेज को अपडेट करने का प्रयास करेगा।
# 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 ....
एक पैकेज समूह को अद्यतन करने के लिए, निम्न आदेश आपके विकास उपकरण (C और C ++ कंपाइलर प्लस संबंधित उपयोगिताओं) को अपडेट करेगा।
# 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 ...
अपने सभी सिस्टम सॉफ़्टवेयर और साथ ही उनकी निर्भरता को नवीनतम संस्करण में अपग्रेड करने के लिए, इस कमांड का उपयोग करें:
# 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 ....
बस! आप इन निम्नलिखित संबंधित लेखों को पढ़ना पसंद कर सकते हैं।
- How to Install or Upgrade to Latest Kernel Version in CentOS 7
- How to Delete Old Unused Kernels in CentOS, RHEL and Fedora
- How to Install Security Updates Automatically on Debian and Ubuntu
हमेशा नवीनतम सुरक्षा और सामान्य पैकेज अपडेट के साथ आपको लिनक्स सिस्टम अपडेट रखें। क्या आपके पास पूछने के लिए कोई प्रश्न है, उसके लिए नीचे टिप्पणी फ़ॉर्म का उपयोग करें।