- مخزن epel مخفف عبارت Extra Packages for Enterprise Linux میباشد.
- گروهی از بستهها درون این مخزن قرار گرفتهاند.
- به منظور اضافه کردن این مخزن به سیستمعامل به صورت زیر عمل نمایید.
# yum install epel-release
- بستهی epel-release درون مخزن extras واقع شده است.
- با نصب بستهی بالا دو پروندهی تنظیمات مخزن epel بر روی سیستمعامل ایجاد میشود.
/etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel-modular.repo
- دو پروندهی بالا بر روی سیستم فعال میباشند.
- پروندههای دیگری نیز در خصوص مخازن epel بر روی سیستم قرار گرفته که غیر فعال میباشند.
- میتوان دو پروندهی بالا را باز نمود و اقدام به تغییر آدرس سرور مخزن نمود.
- مراحل تغییر همانند این مستند میباشد.
- به عنوان مثال پروندهی epel.repo داخلی سازی شده به شرح زیر است.
[epel] name=Extra Packages for Enterprise Linux $releasever - $basearch # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. # baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch # metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir baseurl=http://mirror.aminidc.com/epel/$releasever/Everything/$basearch enabled=1 gpgcheck=0 countme=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [epel-debuginfo] name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. #baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch/debug metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 [epel-source] name=Extra Packages for Enterprise Linux $releasever - $basearch - Source # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. #baseurl=https://download.example/pub/epel/$releasever/Everything/SRPMS metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1
- در پروندهی بالا ، چون به صورت پیشفرض دو مخزن epel-debuginfo و epel-source غیر فعال بودند لذا از تغییر آدرس سرور اجتناب شده است.
- به عنوان مثالی دیگر ، داخلی شدهی پروندهی epel-modular.repo به شرح زیر است.
[epel-modular] name=Extra Packages for Enterprise Linux Modular $releasever - $basearch # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. # baseurl=https://download.example/pub/epel/$releasever/Modular/$basearch # metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-$releasever&arch=$basearch&infra=$infra&content=$contentdir baseurl=http://mirror.aminidc.com/epel/$releasever/Modular/$basearch enabled=1 gpgcheck=0 countme=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [epel-modular-debuginfo] name=Extra Packages for Enterprise Linux Modular $releasever - $basearch - Debug # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. #baseurl=https://download.example/pub/epel/$releasever/Modular/$basearch/debug metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 [epel-modular-source] name=Extra Packages for Enterprise Linux Modular $releasever - $basearch - Source # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. #baseurl=https://download.example/pub/epel/$releasever/Modular/SRPMS metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1
- چون در پروندهی بالا مخازن epel-modular-source و epel-modular-debuginfo به صورت پیشفرض غیر فعال بودند ، لذا از تغییر آدرس سرور آنها اجتناب شده است.
- تست شده بر روی CentOS نسخهی 8.4.2105