【问题标题】:Install TCP Wrappers in Slackware 14.2在 Slackware 14.2 中安装 TCP Wrappers
【发布时间】:2019-02-24 08:48:16
【问题描述】:

如何使用合适的包管理器安装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

我该怎么办?

【问题讨论】:

  • 错误信息是什么意思?
  • @itzFlubby --> 说不能安装。找不到文件。

标签: linux package package-managers slackware


【解决方案1】:

如果它在 /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 是 RedHat 工具。它不会显示此软件包已安装,因为 Slackware 使用的pkgtool 与 rpm 没有任何关系——它不会更新 rpm 软件包数据库。 rpm安装在Slackware中只用于安装rpm包,不管理原生pkgtool安装的包。

【讨论】:

    【解决方案2】:

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

    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 中了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-11
      • 1970-01-01
      • 1970-01-01
      • 2014-12-05
      • 1970-01-01
      • 2022-01-17
      相关资源
      最近更新 更多