1

如何TCP Wrappers使用适当的包管理器进行安装?当我运行时pkgtool,我可以在列表中看到包含 tcp_wrappers tcp_wrappers-7.6-x86_64-1。我想安装它。

我尝试了下面的命令,但没有运气。

installpkg tcp_wrappers-7.6-x86_64-1.tgz

每当我运行上面的命令时,它都会说

Cannot install, file not found.

所以我导航到 /var/log/packages,其中列出了 Slackware 包的列表,我在那里找到了tcp_wrappers-7.6-x86_64-1文件。所以我所做的是:

mv tcp_wrappers-7.6-x86_64-1 tcp_wrappers-7.6-x86_64-1.tgz
installpkg tcp_wrappers-7.6-x86_64-1.tgz

提示信息是:

Verifying package tcp_wrappers-7.6-x86_64-1.tgz
gzip : stdin : not in gzip format
Installing package tcp_wrappers-7.6-x86_64-1.tgz:
PACKAGE DESCRIPTION:
WARNING: Package has not been created with 'makepkg'
Package tcp_wrappers-7.6-x86_64-1.tgz installed.

之后,我使用下面的命令验证了 tcp_wrappers 是否已经安装,但没有成功。

rpm -q tcp_wrappers
rpm -q tcp_wrappers-7.6-x86_64-1
rpm -q tcp_wrappers-7.6-x86_64-1.tgz

它只是说:

package tcp_wrappers is not installed
package tcp_wrappers-7.6-x86_64-1 is not installed
package tcp_wrappers-7.6-x86_64-1.tgz is not installed

我该怎么办?

4

2 回答 2

2

如果它在/var/log/packages中,那么它已经安装了。此目录中的文件是带有包描述、已安装文件列表等的简单文本文件。例如:

less /var/log/packages/tcp_wrappers-7.6-x86_64-1

在我的盒子上显示:

PACKAGE NAME:     tcp_wrappers-7.6-x86_64-1
COMPRESSED PACKAGE SIZE:     77.0K
UNCOMPRESSED PACKAGE SIZE:     340K
PACKAGE LOCATION: /usb-stick/slackware64/n/tcp_wrappers-7.6-x86_64-1.txz
PACKAGE DESCRIPTION:
tcp_wrappers: tcp_wrappers (TCP/IP daemon wrapper library and utilities)
tcp_wrappers:
tcp_wrappers: With this package you can monitor and filter incoming requests for
tcp_wrappers: network services for access control, and detection things like host
tcp_wrappers: name spoofing and host address spoofing.  Nearly all the network
tcp_wrappers: daemons on Slackware are "wrapped" using this library, and most
tcp_wrappers: daemons in /etc/inetd.conf use tcp_wrappers' tcpd wrapper daemon.
tcp_wrappers: If you plan to do much networking, you will need tcp_wrappers.
tcp_wrappers:
tcp_wrappers: tcp_wrappers was written by Wietse Venema.
tcp_wrappers:
FILE LIST:
./
install/
install/slack-desc
usr/
usr/doc/
usr/doc/tcp_wrappers_7.6/
usr/doc/tcp_wrappers_7.6/BLURB
usr/doc/tcp_wrappers_7.6/CHANGES
usr/doc/tcp_wrappers_7.6/DISCLAIMER
usr/doc/tcp_wrappers_7.6/README
usr/doc/tcp_wrappers_7.6/README.NIS
usr/include/
usr/include/tcpd.h
[ cut ]

rpm是红帽工具。它不会显示此软件包已安装,因为pkgtoolSlackware 使用的软件包与 rpm 没有任何关系——它不会更新 rpm 软件包数据库。rpm在 Slackware 中安装仅用于安装 rpm 包,不用于管理 native 安装的包pkgtool

于 2019-02-24T22:59:32.357 回答
1

要测试数据包是否已安装,只需发出以下命令:

slackpkg search tcp_wrappers

输出将是(例如在 Slackware 12.0 上)

The list below shows all packages with the selected pattern.

[ installed ] - tcp_wrappers-7.6-i486-1

`slackpkg' 允许在系统中安装、删除、列出等数据包。请参阅获取帮助选项。至于 TCP_wrappers,我想它早就包含在 Slackware 中了

于 2020-08-28T13:46:04.970 回答