如何使用适当的软件包管理器安装TCP Wrappers
?运行pkgtool
时,我可以在列表中看到tcp_wrappers-7.6-x86_64-1
中包含了tcp_wrappers。我要安装它。
我尝试了下面的命令,没有运气。
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
我该怎么办?
答案 0 :(得分: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
是RedHat工具。它不会显示此软件包的已安装状态,因为Slackware使用的pkgtool
与rpm没有任何关系-它不会更新rpm软件包数据库。 rpm
仅在Slackware中安装,用于安装rpm软件包,而不用于管理由本机pkgtool
安装的软件包。
答案 1 :(得分: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中了