Ubuntu 如何确定要安装的软件包?

Ubuntu 如何确定要安装的软件包?

除了在适当的目录中提取特定于包的文件并运行其中定义的任何脚本之外,是否aptdpkg保留已成功安装的单独记录?

我正在考虑合并单独容器的根目录,所以我想知道会发生什么。

答案1

是的。dpkg记录系统中安装的软件包的条目。它维护的文件是/var/lib/dpkg/status

man dpkg

/var/lib/dpkg/status
      Statuses  of  available packages. This file contains information
      about whether a package is marked for removing or  not,  whether
      it  is  installed  or  not,  etc.  See section INFORMATION ABOUT
      PACKAGES for more info.

      The status file is backed up daily in /var/backups.  It  can  be
      useful if it's lost or corrupted due to filesystems troubles.

相关内容