不管时apt search还是apt-cache search 在有时搜索一个软件时,会出来一堆没有关系的软件,这是为什么?
如:
vim(源中有这个软件包)
adapta(源中没有的包)
得到搜索结果都是乱七八糟一堆,请问这个能解决吗?
ps:还有一个小问题,请问这个网站使用的是什么网站程序?感觉比知乎好玩。
不管时apt search还是apt-cache search 在有时搜索一个软件时,会出来一堆没有关系的软件,这是为什么?
如:
vim(源中有这个软件包)
adapta(源中没有的包)
得到搜索结果都是乱七八糟一堆,请问这个能解决吗?
ps:还有一个小问题,请问这个网站使用的是什么网站程序?感觉比知乎好玩。
以 apt search adapta
为例
最后一个
xapian-tools/unstable,testing 1.4.3-2 amd64
Basic tools for Xapian search engine library
然后 apt show xapian-tools | grep adapta
The Xapian search engine library is a highly *adapta*ble toolkit which allows
所以搜到是因为 Description 里面包含 adapta
完整包信息,搜到那一行出现在最后一段第一行
Package: xapian-tools
Version: 1.4.3-2
Priority: optional
Section: utils
Source: xapian-core
Maintainer: Olly Betts <olly@survex.com>
Installed-Size: 644 kB
Depends: libxapian30 (= 1.4.3-2), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2), libuuid1 (>= 2.16), zlib1g (>= 1:1.1.4)
Homepage: https://xapian.org/
Tag: implemented-in::c++, interface::commandline, role::program,
use::searching, web::search-engine, works-with::text
Download-Size: 478 kB
APT-Sources: https://mirrors.xdlinux.info/debian sid/main amd64 Packages
Description: Basic tools for Xapian search engine library
This package contains several tools related to Xapian.
- copydatabase: Copy one or more Xapian databases.
- delve: Inspect the contents of a Xapian database.
- quest: Command line search of a Xapian database.
- xapian-check: Check the validity of a Xapian database.
- xapian-compact: Compact a quartz database, or merge and compact several.
- xapian-progsrv: stdin/stdout based server, for searching databases remotely.
- xapian-tcpsrv: TCP based server, used for searching databases remotely.
- xapian-replicate: Replication client.
- xapian-replicate-server: Replication server.
- xapian-metadata: Inspect or set user metadata in a database.
.
The Xapian search engine library is a highly adaptable toolkit which allows
developers to easily add advanced indexing and search facilities to their own
applications. It implements the probabilistic model of information retrieval,
and provides facilities for performing ranked free-text searches, relevance
feedback, phrase searching, boolean searching, stemming, and simultaneous
update and searching. It is highly scalable, and is capable of working with
collections containing hundreds of millions of documents.
那如何精确查找某个包呢?只搜索包名,不管依赖和描述文件,不然这样查找感觉好累。
apt-cache search . | grep vim
虽然还是能搜到简短描述中的内容,但至少结果会简洁很多
只搜包名的话,这样?
apt-cache search . | awk '{print $1}' | grep vim
嗯嗯,这个命令正解,谢谢啦,突然发现debian 9 貌似自带ppa功能了,都不用添加了。还有论坛程序是Discourse,写给像我一样好奇的朋友,哈哈……
~ ❯❯❯ apt search -n adapta
Sorting... Done
Full Text Search... Done
adapta-gtk-theme/now 3.89.4.142-1 all [installed,local]
Adapta Gtk+ Theme
~ ❯❯❯
非常感谢
可以直接用apt-get安装ppa里的软件吗?
学到了
可以呀,不过需要先添加ppa源