aptitude 中包的状态 pi 是什么意思?

Ash*_*ppa 5 package-management aptitude apt dpkg

可以使用命令搜索并列出包aptitude search foo。这些包的状态列在最左边的列中。Aptitude 手册中对这些状态的值进行了解释:p未安装、i已安装。

我看到一些包裹旁边的状态pi。这个状态是什么意思?

mur*_*uru 5

联机帮助页

Unless you pass the -F option, the output of aptitude search will
look something like this:

   i   apt                             - Advanced front-end for dpkg
   pi  apt-build                       - frontend to apt to build, optimize and in
   cp  apt-file                        - APT package searching utility -- command-
   ihA raptor-utils                    - Raptor RDF Parser utilities

Each search result is listed on a separate line. The first
character of each line indicates the current state of the package:
the most common states are p, meaning that no trace of the package
exists on the system, c, meaning that the package was deleted but
its configuration files remain on the system, i, meaning that the
package is installed, and v, meaning that the package is virtual.
The second character indicates the stored action (if any; otherwise
a blank space is displayed) to be performed on the package, with
the most common actions being i, meaning that the package will be
installed, d, meaning that the package will be deleted, and p,
meaning that the package and its configuration files will be
removed. If the third character is A, the package was automatically
installed.
Run Code Online (Sandbox Code Playgroud)

正如它所说:

  • p作为第一个字符:系统上不存在该包的痕迹
  • i作为第二个字符:将安装该软件包

另请参阅:


wal*_*tor 1

man aptitude部分说:

\n\n
\n

除非您传递 -F 选项,否则 aptitude search 的输出将如下所示:

\n
\n\n
i   apt                             - Advanced front-end for dpkg\npi  apt-build                       - frontend to apt to build, optimize and in\ncp  apt-file                        - APT package searching utility -- command-\nihA raptor-utils                    - Raptor RDF Parser utilities\n
Run Code Online (Sandbox Code Playgroud)\n\n
\n

每个搜索结果都列在单独的行中。每行的第一个字符表示包的当前状态:最常见的状态是 p,表示系统上不存在该包的痕迹,c,表示该包已被删除,但其配置文件仍保留在系统上, i,表示该软件包已安装,v,表示该软件包是虚拟的。第二个字符表示要对包执行的存储操作(如果有;否则显示空格),最常见的操作是 i,表示将安装该包,d,表示将删除该包和 p,表示该包及其配置文件将被删除。如果第三个字符是 A,则自动安装该软件包。

\n\n

有关可能的状态和操作标志的完整列表,请参阅 aptitude 参考指南中的 \xe2\x80\x9c 访问包信息\xe2\x80\x9d 部分。要自定义搜索的输出,请参阅命令行选项 -F 和 --sort。

\n
\n