azldev-remove-component
ما الذي تفعله
توضح هذه المهارة كيفية حذف مكوّن يدويًا، لأن azldev لا يملك أمر إزالة. وهي موجهة للمطورين الذين يسحبون حزمة من توزيعة azldev.
متى تستخدمها
- ✓عندما تريد إسقاط حزمة من توزيعة azldev.
- ✓عندما تعتمد حزم أخرى على الحزمة وقد تتعطل بعد إزالتها.
- ✓عندما ما زالت إعدادات النشر أو مجموعات الحزم تذكر الحزمة المحذوفة.
رابط المهارة
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أريد إزالة حزمة foo القديمة من توزيعة azldev لدينا. هل يمكنك فحص ما يعتمد عليها وتنظيف الإشارات إليها؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يتحقق الوكيل من الاعتماديات العكسية، ثم يحذف تعريف المكوّن وملف القفل والمواصفات المعروضة، ثم يزيل الإشارات المتبقية. ويتحقق من أي تغيير يؤثر في بنيات أخرى.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Remove a component
There is no azldev command to remove a component — it is a manual edit. A
deletion-only change needs no package build, but changes to dependents, package/image
configuration, or other built inputs must follow the repository's normal validation
requirements. The steps below delete the component's definition, lock, and rendered
spec, then clean up references.
Before you start
Confirm the component exists and inspect its resolved configuration:
azldev comp list -p <name> -q -O json
Check for reverse dependencies first: if other components BuildRequires or
Requires this one, removing it breaks their builds. Search the tree for the
component name. Identify its binary subpackage names from the rendered output under
specs/<first-char>/<name>/, then search for those names too.
azldev comp query currently supports local spec sources only, not the usual upstream
spec source.
Steps
Remove the definition. Delete the component's dedicated
<name>/<name>.comp.tomldirectory, or remove its inline[components.<name>]entry from whichever included TOML defines it.Remove publish / package config references. If your project configures publish channels or package groups, drop any references to the component or to its binary subpackages. Publishing is component-scoped; per-binary exceptions are binary-RPM-scoped — search for both.
Remove the lock. There is no azldev command for this:
rm locks/<name>.lockRemove the rendered spec. Let azldev prune orphaned spec directories:
azldev comp render -a --clean-stale--clean-stale(only valid with-a) removes rendered-spec directories that no longer correspond to a configured component. It re-renders everything, so it is slow; for a targeted removal you can instead delete the component's rendered spec underspecs/by hand.Check other references. Grep for the component (and its binary names) in image definitions and any
*.kiwi/ package-list files, and remove or replace them — an image that installs a now-removed package will not build.
Verify
azldev comp list -p <name> -q -O json # should report the component is not found
Also confirm the lock and rendered spec directory are gone and that no image or package configuration still references the component.
If the removal required changes to dependents or package/image configuration, build and test the affected outputs according to the repository's normal validation policy.
Notes
- Dependents with manual release. If removing this component forces a change
in a dependent (e.g. dropping a
BuildRequires), and that dependent setsrelease.calculation = "manual", bump its release counter yourself in the same change. Components with automatic release calculation (auto,autorelease,static) are handled by the normal commit/render/amend cycle. - Remove exclusive dependencies together. If a package is only needed by the component you are dropping, remove it in the same change to keep the tree consistent.
Generated by azldev docs agent; do not hand-edit.
الأسئلة الشائعة
هل يوجد أمر لإزالة الحزمة؟
لا. تذكر المهارة أنه لا يوجد أمر remove في azldev، فالإزالة تعديل يدوي.
كيف يُعثر على الحزم التابعة؟
تذكر المهارة البحث في الشجرة عن اسم المكوّن وأسماء الحزم الفرعية الثنائية الخاصة به.
هل يحتاج الحذف إلى بناء حزمة؟
تذكر المهارة أن تغيير الحذف فقط لا يحتاج إلى بناء، أما التغييرات الأخرى التي تؤثر في المخرجات فتتبع التحقق العادي.
التفاصيل
الوصف الأصلي من المؤلف
Read this before deleting or dropping a component; there is no azldev remove command, so doing it wrong leaves dangling state. Explains the manual removal workflow for deleting component metadata, cleaning references, and validating any related output-affecting changes. Triggers include remove component, delete package, drop component, prune dependency.
repo: microsoft/azurelinux
الشعبية
- نجوم GitHub
- 5.4k
- الترتيب
- #14967
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
azldev-add-component
5.4kتساعد وكيلك على إضافة مكوّن برمجي جديد إلى بناء توزيعة Linux مبنية بـ azldev، من فحص مواصفات المصدر الأصلي إلى التحقق من النتيجة.
azldev-build-component
5.4kتساعد وكيلك على بناء حزمة azldev وتصحيح أخطائها، بما في ذلك حلقة العرض والبناء والاختبار وإصلاح فشل فحوص البناء.
azldev-comp-toml
5.4kتساعد وكيلك على كتابة ملفات تعريف مكوّنات azldev وتعديلها ومراجعتها، وهي الملفات التي تصف كيفية بناء كل حزمة.
azldev-image
5.4kتساعد وكيلك على بناء صورة Linux واختبارها، مثل صورة حاوية أو آلة افتراضية، باستخدام أوامر الصور في azldev.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.