Otu esi etinye otu ngwugwu site na iji Yum na CentOS na RHEL


Na CentOS/RHEL, ị nwere ike ịwụnye ngwugwu n'otu n'otu ma ọ bụ tinye ọtụtụ ngwugwu n'otu ọrụ n'ime otu. Otu ngwugwu nwere ngwugwu ndị na-arụ ọrụ ndị metụtara ya dị ka ngwaọrụ mmepe, sava weebụ (dịka ọmụmaatụ LEMP), desktọpụ (obere desktọpụ nke nwekwara ike were ya dị ka onye ahịa dị gịrịgịrị) na ọtụtụ ndị ọzọ.

N'ime ntuziaka a, anyị ga-akọwa otu esi etinye otu ngwugwu na njikwa ngwugwu YUM na nkesa CentOS, RHEL na Fedora.

Site na ụdị yum 3.4.2, ewebata iwu otu, ma ugbu a na-arụ ọrụ na Fedora-19+ na CentOS/RHEL-7+; ọ na-achịkọta ndị subcommand niile maka imeso otu.

Ka ịdepụta otu dịnụ site na yum repos niile, jiri ndepụta subcommand dị ka ndị a:

# yum groups list
OR
# yum grouplist
Loaded plugins: changelog, fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * epel: mirror.freethought-internet.co.uk
 * extras: mirrors.linode.com
 * updates: mirrors.linode.com
Available Environment Groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   MATE Desktop
   Basic Web Server
   Virtualization Host
   Server with GUI
   GNOME Desktop
   KDE Plasma Workspaces
   Development and Creative Workstation
Available Groups:
   CIFS file server
   Compatibility Libraries
   Console Internet Tools
....

Ị nwere ike ịhụ mkpokọta ọnụ ọgụgụ nke otu site na iji nchịkọta nchịkọta:

# yum groups summary
Loaded plugins: changelog, fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * epel: mirror.freethought-internet.co.uk
 * extras: mirrors.linode.com
 * updates: mirrors.linode.com
Available Environment Groups: 11
Available Groups: 38
Done

Tupu ị gaa n'ihu ịwụnye otu ngwugwu, ị nwere ike ịlele ID otu, nkọwa dị mkpirikpi nke otu na ngwugwu dị iche iche dị n'okpuru ụdị dị iche iche (ngwugwu iwu kwadoro, ndabara na nhọrọ) site na iji subcommand ozi.

# yum groups info "Development Tools"
Loaded plugins: changelog, fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * epel: mirror.freethought-internet.co.uk
 * extras: mirrors.linode.com
 * updates: mirrors.linode.com

Group: Development Tools
 Group-Id: development
 Description: A basic development environment.
 Mandatory Packages:
   +autoconf
   +automake
    binutils
   +bison
   +flex
    gcc
   +gcc-c++
    gettext
   +libtool
    make
   +patch
    pkgconfig
    redhat-rpm-config
   +rpm-build
   +rpm-sign
...

Iji wụnye otu ngwungwu, dịka ọmụmaatụ ngwaọrụ mmepe (ebe mmepe ntọala), jiri ntinye subcommand dị ka ndị a.

# yum groups install "Development Tools"
Loaded plugins: changelog, fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
base                                                                                                                                                 | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                                                                                                 |  23 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/4): extras/7/x86_64/primary_db                                                                                                                    | 129 kB  00:00:15     
(2/4): updates/7/x86_64/primary_db                                                                                                                   | 3.6 MB  00:00:15     
(3/4): epel/x86_64/primary_db                                                                                                                        | 6.1 MB  00:00:15     
(4/4): epel/x86_64/updateinfo                                                                                                                        | 838 kB  00:00:15     
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * epel: mirror.freethought-internet.co.uk
 * extras: mirrors.linode.com
 * updates: mirrors.linode.com
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
--> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
...

Iji wepu otu (nke na-ehichapụ ngwungwu niile dị na otu na sistemụ), jiri naanị wepụ subcommand.

# yum groups remove "Development Tools"

Ị nwekwara ike kaa otu dị ka arụnyere na iwu dị n'okpuru.

# yum groups mark install "Development Tools"

Nke ahụ bụ ihe niile ugbu a! Ị nwere ike ịhụ ndị ọzọ subcommands na nkọwa ha n'okpuru ngalaba nke otu dị na yum man ibe.

Ị nwekwara ike ịmasị ịgụ akụkọ ndị a na njikwa ngwugwu Yum.

  1. Otu esi etinye ma jiri 'yum-utils' mee ka Yum dịgide ma kwalite arụmọrụ ya
  2. Ụzọ 4 iji gbanyụọ/kpọchie ụfọdụ mmelite ngwugwu site na iji iwu Yum
  3. Otu esi edozi mperi Yum: Ihe onyonyo diski data adịghị edozi
  4. Otu esi eji ‘Yum History’ chọpụta ozi ngwugwu arụnyere ma ọ bụ wepụrụ

N'ime ntuziaka a, anyị akọwala otu esi etinye otu ngwugwu na njikwa ngwugwu YUM na CentOS, RHEL na Fedora. Jiri mpempe nkọwa dị n'okpuru zitere anyị ajụjụ ma ọ bụ echiche gị gbasara akụkọ a.