有什么办法可以让 apt-get 在视觉上更像 yum 吗?

有什么办法可以让 apt-get 在视觉上更像 yum 吗?

使用 yum 安装/删除软件包时,在继续之前您将获得一个很好的表格摘要。而“apt-get”只返回一些纯文本。

我个人觉得yum的实现方式更加直观、实用。有什么方法可以将 yum 的良好演示带到没有它的发行版中吗?

在这里您将看到“yum”和“apt/apt-get”包管理器的输出示例:

root@ee754c0c349c:/# apt install nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  spell
The following NEW packages will be installed:
  nano
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 231 kB of archives.
After this operation, 778 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 nano amd64 2.9.3-2 [231 kB]
Fetched 231 kB in 3s (92.0 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package nano.
(Reading database ... 4046 files and directories currently installed.)
Preparing to unpack .../nano_2.9.3-2_amd64.deb ...
Unpacking nano (2.9.3-2) ...
Setting up nano (2.9.3-2) ...
update-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/nano.1.gz (of link group editor) doesn't exist
update-alternatives: using /bin/nano to provide /usr/bin/pico (pico) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/pico.1.gz because associated file /usr/share/man/man1/nano.1.gz (of link group pico) doesn't exist

    [root@5c561c79e101 /]# yum install nano
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:06:18 ago on Mon Apr 13 12:58:08 2020.
Dependencies resolved.
===============================================================================================
 Package            Architecture         Version                    Repository            Size
===============================================================================================
Installing:
 nano               x86_64               2.9.8-1.el8                BaseOS               581 k

Transaction Summary
===============================================================================================
Install  1 Package

Total size: 581 k
Installed size: 2.2 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] nano-2.9.8-1.el8.x86_64.rpm: Already downloaded
warning: /var/cache/dnf/BaseOS-f6a80ba95cf937f2/packages/nano-2.9.8-1.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS-8 - Base                                                1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) <[email protected]>"
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                       1/1
  Installing       : nano-2.9.8-1.el8.x86_64                                               1/1
  Running scriptlet: nano-2.9.8-1.el8.x86_64                                               1/1
  Verifying        : nano-2.9.8-1.el8.x86_64                                               1/1

Installed:
  nano-2.9.8-1.el8.x86_64

Complete!

答案1

这事有进一步更新吗?我正在从 CentOS 迁移到 Ubuntu,这个 APT(虽然它快速、漂亮且易于使用)让我感到不寒而栗,但效果并不好。在安装任何应用程序或执行任何其他任务之前检查其中的任何内容是非常糟糕的。 :(

相关内容