如何使用适当的包管理器安装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怎么办?
发布于 2019-02-24 22:59:32
如果它在/var/log/包中,那么它已经安装好了。该目录中的文件是包含包描述、已安装文件列表等的简单文本文件。例如:
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安装的包。
发布于 2020-08-28 13:46:04
要测试数据包是否已安装,只需发出以下命令:
slackpkg search tcp_wrappers输出将为(例如Slackware 12.0)
The list below shows all packages with the selected pattern.
[ installed ] - tcp_wrappers-7.6-i486-1“松弛”允许在系统中安装、删除、列出等数据包。请查看“获取帮助”选项。至于TCP_wrappers,我认为很久以前就包含在Slackware中了。
https://stackoverflow.com/questions/54850231
复制相似问题