본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)5.4k · #14967

azldev-remove-component

하는 일

이 스킬은 azldev에 제거 명령이 없으므로 구성 요소를 수동으로 삭제하는 방법을 설명합니다. azldev 배포판에서 패키지를 퇴역시키는 개발자를 위한 것입니다.

사용하는 경우

  • ✓azldev 배포판에서 패키지를 빼고 싶을 때.
  • ✓패키지에 의존하는 다른 것이 제거 후 깨질 수 있을 때.
  • ✓게시나 패키지 그룹 설정에 제거된 패키지가 여전히 언급되는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“azldev 배포판에서 오래된 foo 패키지를 제거하려고 합니다. 무엇이 그것에 의존하는지 확인하고 참조를 정리해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 역방향 의존성을 확인하고, 구성 요소의 정의, 잠금, 렌더링된 스펙을 삭제한 뒤, 남은 참조를 제거합니다. 다른 빌드에 영향을 주는 변경은 검증합니다.

기술 내용 (원본 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

  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.

자주 묻는 질문

패키지를 제거하는 명령이 있나요?

아닙니다. azldev에는 remove 명령이 없어서 제거는 수동 편집이라고 스킬은 설명합니다.

의존하는 패키지는 어떻게 찾나요?

트리에서 구성 요소 이름과 바이너리 하위 패키지 이름을 검색하라고 스킬은 설명합니다.

삭제에도 패키지 빌드가 필요한가요?

삭제만 하는 변경은 빌드가 필요 없지만, 결과물에 영향을 주는 다른 변경은 일반 검증을 따른다고 스킬은 설명합니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬