Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)5.4k · #14967

azldev-remove-component

Ce qu’il fait

Cette compétence explique comment supprimer manuellement un composant, car azldev n'a pas de commande de suppression. Elle s'adresse aux développeurs qui retirent un paquet d'une distribution azldev.

Quand l’utiliser

  • ✓Quand vous voulez retirer un paquet d'une distribution azldev.
  • ✓Quand un paquet a des dépendants qui pourraient casser après sa suppression.
  • ✓Quand les paramètres de publication ou de groupes de paquets mentionnent encore le paquet supprimé.

Lien du skill

https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Je veux retirer l'ancien paquet foo de notre distribution azldev. Peux-tu vérifier ce qui en dépend et nettoyer les références ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent vérifie les dépendances inverses, supprime la définition, le verrouillage et la spécification rendue du composant, puis retire les références restantes. Il valide les modifications qui affectent d'autres compilations.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

  1. Remove the definition. Delete the component's dedicated <name>/<name>.comp.toml directory, or remove its inline [components.<name>] entry from whichever included TOML defines it.

  2. 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.

  3. Remove the lock. There is no azldev command for this:

    rm locks/<name>.lock
    
  4. Remove 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 under specs/ by hand.

  5. 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 sets release.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.

Questions fréquentes

Existe-t-il une commande pour retirer un paquet ?

Non. La compétence indique qu'il n'existe pas de commande remove dans azldev, donc la suppression est une modification manuelle.

Comment trouve-t-on les dépendants ?

La compétence indique de rechercher dans l'arborescence le nom du composant et les noms de ses sous-paquets binaires.

La suppression nécessite-t-elle une compilation ?

La compétence indique qu'une modification qui ne fait que supprimer ne nécessite pas de compilation, mais les autres modifications qui affectent les sorties suivent la validation normale.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
5.4k
Position au classement
#14967
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires