Community Tutorials RHEL / Rocky / AlmaLinux كيفية اشتراك RHEL 9 في مستودعات AppStream
كيفية اشتراك RHEL 9 في مستودعات AppStream
RHEL / ROCKY / ALMALINUX

كيفية اشتراك RHEL 9 في مستودعات AppStream

SKYLINE Knowledge Base
Photo by imattsmart on Unsplash

دليل عملي خطوة بخطوة لـ كيفية اشتراك RHEL 9 في مستودعات AppStream. أوامر مختبرة في الإنتاج، متطلبات مسبقة، تحقق نهائي وروابط لمواضيع ذات صلة.

على Red Hat Enterprise Linux 9 نفسه (وليس Rocky / Alma)، تحتاج إلى اشتراك نشط لسحب الحزم من CDN الخاص بـ Red Hat — بما في ذلك مستودع AppStream حيث تقيم معظم بيئات تشغيل اللغات.

المتطلبات المسبقة

  • مضيف RHEL 9 مع sudo.
  • اشتراك Red Hat Developer (مجاني) أو مدفوع.
  • اتصال HTTPS خارجي إلى subscription.rhsm.redhat.com.

الخطوة 1: فحص الحالة الحالية

sudo subscription-manager status
sudo subscription-manager identity
sudo dnf repolist

الخطوة 2: تسجيل المضيف

sudo subscription-manager register --username your@redhat.com

أو باستخدام مفتاح تنشيط:

sudo subscription-manager register \
  --org=12345678 \
  --activationkey=production-baseline

الخطوة 3: إرفاق اشتراك

sudo subscription-manager attach --auto
sudo subscription-manager list --consumed

الخطوة 4: تمكين المستودعات القياسية

sudo subscription-manager repos --list-enabled
sudo subscription-manager repos --enable=rhel-9-for-x86_64-baseos-rpms
sudo subscription-manager repos --enable=rhel-9-for-x86_64-appstream-rpms
sudo subscription-manager repos --enable=codeready-builder-for-rhel-9-x86_64-rpms

الخطوة 5: تحديث وتأكيد

sudo dnf clean all
sudo dnf makecache
dnf repolist

الخطوة 6: تثبيت شيء من AppStream

dnf module list nodejs
sudo dnf module enable -y nodejs:20
sudo dnf module install -y nodejs:20/common
node --version

التحقق

sudo subscription-manager status
sudo subscription-manager identity
dnf repolist enabled

الخاتمة

بعد التسجيل، يتصرف RHEL كأي توزيعة DNF أخرى. إذا لم تحتج عقد دعم Red Hat، فإن Rocky 9 أو Alma 9 يمنحانك نفس المنصة الثنائية بدون تسجيل.

الخطوات التالية

SKYLINE Engineering

@skyline

The engineering team at SKYLINE Industrial Solutions. We publish field-tested guides drawn from real KSA and GCC deployments.

See author profile
SKYLINE engineering services

Need this implemented for you?

Reading is free — building it right takes a team. SKYLINE engineers ship RHEL / Rocky / AlmaLinux for Aramco vendors, banks, hospitals and government agencies across Saudi Arabia. Talk to us before you start.

Aramco Approved Contractor ISO 9001 · ISO 27001 SAMA CSF aligned NCA ECC ready 247+ KSA clients

Comments

0 total · 0 threads
Be the first to leave a comment.