저장소에서 실제로 사용할 수 없지만 다른 패키지에서 "제공"되는 일부 패키지가 있습니다.
예를 들어 패키지는 에 의존할 수 있지만 libc-dev
(적어도 내 경우에는) libc-dev
에 의해 제공됩니다 libc6-dev
.
어떤 패키지가 다른 패키지/종속성을 제공하는지 확인하는 방법이 있습니까?
답변1
현재 내가 생각할 수 있는 유일한 방법은 다음을 사용하는 것입니다 aptitude
.
$ aptitude search '~Plibc-dev' |head
i libc6-dev - GNU C Library: Development Libraries and Header Files
p libc6-dev-arm64-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
p libc6-dev-armel-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
p libc6-dev-armhf-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
p libc6-dev-hppa-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
p libc6-dev-m68k-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
p libc6-dev-mips-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
p libc6-dev-mips64-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
p libc6-dev-mips64el-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
p libc6-dev-mips64r6-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
$ _
답변2
나는 보통 다음을 사용합니다 apt-cache showpkg
(ALT, Debian 및 Ubuntu에서):
root@rx2620:~# apt-cache showpkg libc-dev | tail
libattr1-dev,libc-dev
libamu-dev,libc-dev
libasound2-dev,libc-dev
libafterimage-dev,libc-dev
libacl1-dev,libc-dev
Dependencies:
Provides:
Reverse Provides:
libc6.1-dev 2.13-35
libc6.1-dev 2.13-38+deb7u10
root@rx2620:~#