在 Slackware 14.2 中安装 TCP Wrappers
Install TCP Wrappers in Slackware 14.2
如何使用合适的包管理器安装 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
我该怎么办?
如果它在/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
。
要测试包是否已经安装,只需发出命令:
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里了,我觉得
如何使用合适的包管理器安装 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
我该怎么办?
如果它在/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
。
要测试包是否已经安装,只需发出命令:
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里了,我觉得