apt-cache showを実行した後、どうすればわかりますか?`、このパッケージは`sources.list`のどのリポジトリに対応していますか?

apt-cache showを実行した後、どうすればわかりますか?`、このパッケージは`sources.list`のどのリポジトリに対応していますか?

apt-cache show <package>実行後、そのフィールドがどのリポジトリに対応するかをどのように知ることができますか?sources.list<package>Filename:

この場合、リポジトリはほとんどないため、すべてのリポジトリへのパスを前に追加して機能してsources.listいることを確認できます。pool/main/c/cntlm/cntlm_0.92.3-1+b1_amd64.deb

しかし、リポジトリが多い場合、sources.listパッケージがどのリポジトリにあるかどうかをどうやって知ることができますか?

apt-cache show cntlm:

parallels@debian-gnu-linux-vm:~$ apt-cache show cntlm
Package: cntlm
Source: cntlm (0.92.3-1)
Version: 0.92.3-1+b1
Installed-Size: 149
Maintainer: David Watson <[email protected]>
Architecture: amd64
Replaces: ntlmaps
Depends: adduser, libc6 (>= 2.14)
Description-en: Fast NTLM authentication proxy with tunneling
 Cntlm is a fast and efficient NTLM proxy, with support for TCP/IP tunneling,
 authenticated connection caching, ACLs, proper daemon logging and behaviour
 and much more. It has up to ten times faster responses than similar NTLM
 proxies, while using by orders or magnitude less RAM and CPU. Manual page
 contains detailed information.
Description-md5: a09ce14efcc2b3cdd95e19cd49ef5d70
Homepage: http://cntlm.sourceforge.net/
Tag: role::program, security::authentication, use::proxying
Section: net
Priority: optional
Filename: pool/main/c/cntlm/cntlm_0.92.3-1+b1_amd64.deb
Size: 64240
MD5sum: a32eae32fd459e472caf1e47330af6d9
SHA256: c0a10c545d42dacea0b6d4ebf7c088a1178e708083fd2e32f2c277dcc17f69f0

/etc/apt/sources.list:

parallels@debian-gnu-linux-vm:~$ cat /etc/apt/sources.list
# 

# deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 DVD Binary-1 20170722-11:31]/ stretch contrib main

deb http://ftp.us.debian.org/debian/ stretch main
deb-src http://ftp.us.debian.org/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main contrib
deb-src http://security.debian.org/debian-security stretch/updates main contrib

# stretch-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ stretch-updates main contrib
deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib

# docker
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable

ベストアンサー1

の出力ではこれを直接確認することはできませんapt-cache showapt-cacheさまざまなリポジトリで利用可能なバージョンを知らせる別のコマンドがありますpolicy。候補バージョンのあるバージョンは、表示されているパッケージの潜在的なソースですshow

apt-cache policy cntlm

ご希望の情報をご提供いたします。

おすすめ記事