运行后如何知道及其字段对应的是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 show
。还有另一个apt-cache
命令可以告诉您各个存储库中可用的版本,policy
;那些带有候选版本的都是 所示的包的潜在来源show
。
apt-cache policy cntlm
将提供您想要的信息。