有没有办法在不使用 apt-get 的情况下安装 MD5?

Mik*_*iki 2 installation apt

有没有办法在不使用 apt-get 的情况下在 Ubuntu 中安装 MD5?

Oli*_*Oli 7

您无需安装任何东西。该coreutils包是内核的一个依赖项,几乎与其他十几个非常标准的包有关。您必须非常努力才能移除包裹。

您使用它md5sum默认情况下将文件作为其主要参数。不过,在交互式设置中使用它相当容易:

oli@bert:~$ md5sum - <<<"This is a test hash"
6b7cf77ca6403a2323e5fd98a462538e  -

oli@bert:~$ echo "This is a test hash" | md5sum 
6b7cf77ca6403a2323e5fd98a462538e  -
Run Code Online (Sandbox Code Playgroud)

但是它还有其他的功能,跑来man md5sum看看。

TL;DR:它是默认安装的。