ວິທີການຕິດຕັ້ງກຸ່ມແພັກເກດໂດຍໃຊ້ Yum ໃນ CentOS ແລະ RHEL
ໃນ CentOS/RHEL, ທ່ານສາມາດຕິດຕັ້ງແພັກເກັດເປັນສ່ວນບຸກຄົນຫຼືຕິດຕັ້ງຫຼາຍໆແພກໃນການໃຊ້ງານດຽວໃນກຸ່ມ. ກຸ່ມບັນຈຸມີບັນດາແພັກເກດທີ່ປະຕິບັດວຽກທີ່ກ່ຽວຂ້ອງເຊັ່ນ: ເຄື່ອງມືພັດທະນາ, web server (ຍົກຕົວຢ່າງ LEMP), desktop (ໜ້າ ຈໍນ້ອຍທີ່ສາມາດເຮັດວຽກໄດ້ເປັນລູກຄ້າບາງໆ) ແລະອີກຫຼາຍໆຢ່າງ.
ໃນຄູ່ມືນີ້, ພວກເຮົາຈະອະທິບາຍວິທີການຕິດຕັ້ງກຸ່ມແພັກເກດກັບຜູ້ຈັດການຊຸດ YUM ໃນ CentOS, RHEL ແລະ Fedora ແຈກຢາຍ.
ຈາກ yum version 3.4.2, ຄຳ ສັ່ງຂອງກຸ່ມໄດ້ຖືກ ນຳ ສະ ເໜີ, ແລະດຽວນີ້ໄດ້ເຮັດວຽກກ່ຽວກັບ Fedora-19 + ແລະ CentOS/RHEL-7 +; ມັນ ນຳ ເອົາບັນດາກຸ່ມຍ່ອຍທັງ ໝົດ ສຳ ລັບຈັດການກັບກຸ່ມ.
ເພື່ອບອກກຸ່ມທີ່ມີຢູ່ຈາກ repos yum ທັງ ໝົດ, ໃຊ້ subcommand ລາຍຊື່ດັ່ງຕໍ່ໄປນີ້:
# 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 ....
ທ່ານສາມາດເຫັນ ຈຳ ນວນກຸ່ມທັງ ໝົດ ທີ່ ນຳ ໃຊ້ບົດສະຫລຸບຍ່ອຍ:
# 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
ກ່ອນທີ່ທ່ານຈະ ດຳ ເນີນການຕິດຕັ້ງກຸ່ມແພັກເກັດ, ທ່ານສາມາດເບິ່ງ ID ຂອງກຸ່ມ, ຄຳ ອະທິບາຍສັ້ນໆຂອງກຸ່ມແລະຊຸດຕ່າງໆທີ່ມັນບັນຈຸຢູ່ພາຍໃຕ້ປະເພດຕ່າງໆ (ຈຳ ເປັນ, ຄ່າເລີ່ມຕົ້ນແລະຊຸດທີ່ເປັນທາງເລືອກ) ໂດຍໃຊ້ຂໍ້ມູນຍ່ອຍ subcommand.
# 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 ...
ໃນການຕິດຕັ້ງຊຸດຂອງກຸ່ມ, ຍົກຕົວຢ່າງເຄື່ອງມືພັດທະນາ (ສະພາບແວດລ້ອມການພັດທະນາພື້ນຖານ), ໃຫ້ໃຊ້ subcommand ຕິດຕັ້ງດັ່ງຕໍ່ໄປນີ້.
# 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 ...
ເພື່ອ ກຳ ຈັດກຸ່ມ (ເຊິ່ງລຶບທຸກຊຸດໃນກຸ່ມອອກຈາກລະບົບ), ພຽງແຕ່ໃຊ້ subcommand ອອກ.
# yum groups remove "Development Tools"
ທ່ານຍັງສາມາດ ໝາຍ ກຸ່ມທີ່ຕິດຕັ້ງດ້ວຍ ຄຳ ສັ່ງຂ້າງລຸ່ມ.
# yum groups mark install "Development Tools"
ດຽວນີ້ ໝົດ ແລ້ວ! ທ່ານສາມາດຊອກຫາ subcommands ເພີ່ມເຕີມແລະ ຄຳ ອະທິບາຍຂອງພວກເຂົາພາຍໃຕ້ຫົວຂໍ້ຍ່ອຍຂອງກຸ່ມໃນ ໜ້າ yum man.
ທ່ານອາດຈະຢາກອ່ານບົດຄວາມຕໍ່ໄປນີ້ກ່ຽວກັບຜູ້ຈັດການຊຸດ Yum.
<
ໃນຄູ່ມືນີ້, ພວກເຮົາໄດ້ອະທິບາຍວິທີການຕິດຕັ້ງກຸ່ມແພັກເກດກັບຜູ້ຈັດການຊຸດ YUM ໃນ CentOS, RHEL ແລະ Fedora. ໃຊ້ແບບຟອມ ຄຳ ເຫັນຂ້າງລຸ່ມນີ້ເພື່ອສົ່ງ ຄຳ ຖາມຫລືຄວາມຄິດເຫັນຂອງພວກເຮົາກ່ຽວກັບບົດຄວາມນີ້.