且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Linux 服务器上安装 ZLIB

更新时间:2022-12-01 11:05:01

好的,如果你使用的是 Debian,你应该这样做:

Ok, if you are using Debian, you should do:

su

成为root

apt-get update

刷新包列表,然后

apt-cache search zlib

检查你刚刚更新的列表中的相关包,然后

to check the relevant packages in the lists you have just updated, then

apt-get install <whatever_package_you_found_earlier>

我建议使用正则表达式作为 apt-cache 的搜索字符串,因为它们更准确,如


I suggest using regular expression as search strings for apt-cache, since they are more accurate, as in

apt-cache search ^zlib

只返回包名以zlib开头