Otu esi eme, gbanyụọ na wụnye Yum Plug-ins


plug-ins YUM bụ obere mmemme na-agbatị ma melite arụmọrụ njikwa ngwugwu. A na-etinye ụfọdụ n'ime ha na ndabara, ebe ọtụtụ adịghị. Yum na-agwa gị mgbe niile nkwụnye ins, ma ọ bụrụ na ọ bụla, na-ebu ma na-arụ ọrụ mgbe ọ bụla ị na-eme iwu yum ọ bụla.

N'ime edemede a dị mkpirikpi, anyị ga-akọwa otu esi agbanwuo ma ọ bụ gbanyụọ yana hazie nkwụnye njikwa ngwugwu YUM na nkesa CentOS/RHEL.

Ka ịhụ plug-ins niile na-arụ ọrụ, mee iwu yum n'ọnụ ọnụ. Site na mmepụta dị n'okpuru, ị ga-ahụ na a na-ebunye nkwụnye enyo kacha ọsọ.

# yum search nginx

Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Determining fastest mirrors
...

Na-eme ka YUM nkwụnye

Iji mee ka yum plug-ins mee, hụ na ntuziaka plugins=1 (1 pụtara na) dị n'okpuru ngalaba [isi] na faịlụ /etc/yum.conf, dị ka egosiri n'okpuru.

# vi /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1 installonly_limit=5

Nke a bụ usoro izugbe iji mee ka yum plug-ins zuru ụwa ọnụ. Dịka anyị ga-ahụ ma emechaa, ị nwere ike mee ka ha nwee ike ime ha n'otu n'otu na faịlụ nhazi nnabata ha.

Ịkwụsị YUM nkwụnye

Iji gbanyụọ yum plug-ins, naanị gbanwee uru dị n'elu ka ọ bụrụ 0 (nke pụtara apụ), nke na-egbochi nkwụnye niile zuru ụwa ọnụ.

plugins=0	

N'oge a, ọ dị mkpa iburu n'uche na:

  • Ebe ọ bụ na plug-ins ole na ole (dị ka ngwaahịa-id na onye njikwa ndebanye aha) na-enye ọrụ yum dị mkpa, a naghị atụ aro ka gbanyụọ plug-ins niile ọkachasị n'ụwa niile.
  • Nke abụọ, a na-ahapụ ịgbanyụ plug-ins n'ụwa niile dị ka ụzọ dị mfe, nke a pụtara na ị nwere ike iji ndokwa a mgbe ị na-enyocha nsogbu nwere ike na yum.
  • Nhazi maka nkwụnye dị iche iche dị na /etc/yum/pluginconf.d/.
  • Ịgbanyụ plug-ins zuru ụwa ọnụ na /etc/yum.conf na-ewepụ ntọala na faịlụ nhazi nke ọ bụla.
  • Ị nwekwara ike gbanyụọ otu plug-ins otu ma ọ bụ yum niile mgbe ị na-agba yum, dị ka akọwara n'ikpeazụ.

Ịwụnye ma na-ahazi mgbakwunye YUM Plug-ins

Ị nwere ike ịlele ndepụta nke plug-ins yum na nkọwa ha site na iji iwu a.

# yum search yum-plugin

Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Loading mirror speeds from cached hostfile
 * base: mirror.sov.uk.goscomb.net
 * epel: www.mirrorservice.org
 * extras: mirror.sov.uk.goscomb.net
 * updates: mirror.sov.uk.goscomb.net
========================================================================= N/S matched: yum-plugin ==========================================================================
PackageKit-yum-plugin.x86_64 : Tell PackageKit to check for updates when yum exits
fusioninventory-agent-yum-plugin.noarch : Ask FusionInventory agent to send an inventory when yum exits
kabi-yum-plugins.noarch : The CentOS Linux kernel ABI yum plugin
yum-plugin-aliases.noarch : Yum plugin to enable aliases filters
yum-plugin-auto-update-debug-info.noarch : Yum plugin to enable automatic updates to installed debuginfo packages
yum-plugin-changelog.noarch : Yum plugin for viewing package changelogs before/after updating
yum-plugin-fastestmirror.noarch : Yum plugin which chooses fastest repository from a mirrorlist
yum-plugin-filter-data.noarch : Yum plugin to list filter based on package data
yum-plugin-fs-snapshot.noarch : Yum plugin to automatically snapshot your filesystems during updates
yum-plugin-keys.noarch : Yum plugin to deal with signing keys
yum-plugin-list-data.noarch : Yum plugin to list aggregate package data
yum-plugin-local.noarch : Yum plugin to automatically manage a local repo. of downloaded packages
yum-plugin-merge-conf.noarch : Yum plugin to merge configuration changes when installing packages
yum-plugin-ovl.noarch : Yum plugin to work around overlayfs issues
yum-plugin-post-transaction-actions.noarch : Yum plugin to run arbitrary commands when certain pkgs are acted on
yum-plugin-priorities.noarch : plugin to give priorities to packages from different repos
yum-plugin-protectbase.noarch : Yum plugin to protect packages from certain repositories.
yum-plugin-ps.noarch : Yum plugin to look at processes, with respect to packages
yum-plugin-remove-with-leaves.noarch : Yum plugin to remove dependencies which are no longer used because of a removal
yum-plugin-rpm-warm-cache.noarch : Yum plugin to access the rpmdb files early to warm up access to the db
yum-plugin-show-leaves.noarch : Yum plugin which shows newly installed leaf packages
yum-plugin-tmprepo.noarch : Yum plugin to add temporary repositories
yum-plugin-tsflags.noarch : Yum plugin to add tsflags by a commandline option
yum-plugin-upgrade-helper.noarch : Yum plugin to help upgrades to the next distribution version
yum-plugin-verify.noarch : Yum plugin to add verify command, and options
yum-plugin-versionlock.noarch : Yum plugin to lock specified packages from being updated

Iji wụnye nkwụnye, jiri otu usoro maka ịwụnye ngwugwu. Dịka ọmụmaatụ, anyị ga-etinye nkwụnye mgbanwe mgbanwe nke a na-eji gosipụta ngwungwu mgbanwe tupu/mgbe emelite.

# yum install yum-plugin-changelog 

Ozugbo ị wụnyechara, Changelog ga-enyere ya aka na ndabara, iji gosi leba anya na faịlụ nhazi ya.

# vi /etc/yum/pluginconf.d/changelog.conf

Ugbu a ị nwere ike ịlele mgbanwe ndekọ maka ngwugwu (httpd na nke a) dị ka nke a.

# yum changelog httpd

Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * epel: mirror.freethought-internet.co.uk
 * extras: mirrors.linode.com
 * updates: mirrors.linode.com

Listing all changelogs

==================== Installed Packages ====================
httpd-2.4.6-45.el7.centos.4.x86_64       installed
* Wed Apr 12 17:30:00 2017 CentOS Sources <[email > - 2.4.6-45.el7.centos.4
- Remove index.html, add centos-noindex.tar.gz
- change vstring
- change symlink for poweredby.png
- update welcome.conf with proper aliases
...

Gbanyụọ YUM Plug-ins na Command Line

Dịka ekwuru na mbụ, anyị nwekwara ike gbanyụọ otu nkwụnye ma ọ bụ karịa ka anyị na-agba iwu yum site na iji nhọrọ abụọ a dị mkpa.

  • --noplugins - gbanyụọ nkwụnye niile
  • --disableplugin=plugin_name - gbanyụọ otu nkwụnye ihe

Ị nwere ike gbanyụọ plug-ins niile dịka iwu yum a.

# yum search --noplugins yum-plugin

Iwu na-esote na-ewepụ nkwụnye ahụ, ngwa ngwa ngwa ngwa mgbe ị na-etinye ngwugwu httpd.

# yum install --disableplugin=fastestmirror httpd

Loaded plugins: changelog
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
...

Nke ahụ bụ maka ugbu a! ị nwekwara ike ịmasị ịgụ akụkọ YUM ndị a na-eso.

  1. Otu esi eji ‘Yum History’ chọpụta ozi ngwugwu arụnyere ma ọ bụ wepụrụ
  2. Otu esi edozi mperi Yum: Ihe onyonyo diski data adịghị edozi

N'ime ntuziaka a, anyị gosipụtara otu esi arụ ọrụ, hazie ma ọ bụ gbanyụọ nkwụnye njikwa ngwugwu YUM na CentOS/RHEL 7. Jiri mpempe okwu dị n'okpuru jụọ ajụjụ ọ bụla ma ọ bụ kesaa echiche gị gbasara akụkọ a.