我正在尝试使用 apt 来安装一个新包,并且确认屏幕在一行中显示所有依赖项。
示例输出: 屏幕截图显示了输出apt install postgresql
请忽略-y
屏幕截图中的标志。我通常不使用 -y 标志,但没有其他屏幕截图可以分享,因此使用了带有-y
标志的屏幕截图。
(base) uk@uk-Latitude-7280:~$ sudo apt-get -y install postgresql Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcommon-sense-perl libjson-perl libjson-xs-perl libpq5 libtypes-serialiser-perl >pgdg-keyring postgresql-14 postgresql-client-14 postgresql-client-common >postgresql->common sysstat Suggested packages: postgresql-doc postgresql-doc-14 isag The following NEW packages will be installed: libcommon-sense-perl libjson-perl libjson-xs-perl libtypes-serialiser-perl >pgdg->keyring postgresql postgresql-14 postgresql-client-14 postgresql-client-common >postgresql-common sysstat The following packages will be upgraded: libpq5
预期输出:
(base) uk@uk-Latitude-7280:~$ sudo apt-get -y install postgresql Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcommon-sense-perl libjson-perl libjson-xs-perl libpq5 libtypes-serialiser-perl pgdg-keyring postgresql-14 postgresql-client-14 postgresql-client-common postgresql-common sysstat Suggested packages: postgresql-doc postgresql-doc-14 isag The following NEW packages will be installed: libcommon-sense-perl libjson-perl libjson-xs-perl libtypes-serialiser-perl pgdg-keyring postgresql postgresql-14 postgresql-client-14 postgresql-client-common postgresql-common sysstat The following packages will be upgraded: libpq5
-y
编辑:增加了屏幕截图中使用的标志的清晰度。