Saltar al contenido
Skillpedia
Deploy y nube (DevOps)5,4 mil · #14967

azldev-remove-component

Qué hace

Esta skill explica cómo borrar un componente a mano, ya que azldev no tiene un comando para quitarlo. Es para desarrolladores que retiran un paquete de una distribución azldev.

Cuándo usarla

  • ✓Cuando quieres eliminar un paquete de una distribución azldev.
  • ✓Cuando un paquete tiene dependientes que podrían romperse al quitarlo.
  • ✓Cuando los ajustes de publicación o de grupos de paquetes todavía mencionan el paquete eliminado.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Quiero quitar el paquete antiguo foo de nuestra distribución azldev. ¿Puedes revisar qué depende de él y limpiar las referencias?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente revisa las dependencias inversas, borra la definición, el bloqueo y la especificación renderizada del componente, y luego elimina las referencias que queden. Valida los cambios que afectan a otras compilaciones.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.

Preguntas frecuentes

¿Hay un comando para quitar un paquete?

No. La skill indica que azldev no tiene un comando remove, así que quitarlo es una edición manual.

¿Cómo se encuentran los dependientes?

La skill indica buscar en el árbol el nombre del componente y los nombres de sus subpaquetes binarios.

¿Borrar necesita compilar el paquete?

La skill indica que un cambio que solo borra no necesita compilación, pero otros cambios que afectan a las salidas siguen la validación normal.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
5,4 mil
Posición en el ranking
#14967
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas