Verifique qual pacote fornece uma dependência debian [duplicada]

1

Existem alguns desses pacotes que não estão disponíveis no repositório, mas são "Provides" fornecidos por outros pacotes.

Por exemplo, pacotes podem depender de libc-dev , mas (pelo menos no meu caso) libc-dev é fornecido por libc6-dev .

Existe uma maneira de verificar qual pacote fornece algum outro pacote / dependência?

    
por shay 28.02.2018 / 03:17

2 respostas

1

A única maneira que posso pensar no momento é usar 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)
$ _
    
por 28.02.2018 / 03:33
0

Eu costumo usar apt-cache showpkg (em ALT, Debian e 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:~#
    
por 01.03.2018 / 01:25

Tags