如何在Fedora中批量安装Kali Linux的核心安全工具?
Hey there! I totally get where you're coming from—sticking with your preferred Fedora setup but needing that full suite of Kali security tools without the headache of installing each one manually. Let's walk through the best ways to pull this off:
1. 用Fedora官方仓库+批量安装命令(最稳定)
Fedora's official repos already include a ton of Kali's most popular tools—think nmap, Wireshark, Metasploit, John the Ripper, and more. You can install a curated set of these core tools in one go with a single command:
sudo dnf install nmap wireshark metasploit-framework john hydra sqlmap nikto gobuster hashcat aircrack-ng burpsuite
If you need additional tools, just add their package names separated by spaces to the command.
2. 第三方维护的Kali RPM集合(最全面)
There's a community-backed project from Offensive Security that packages many Kali tools as RPMs for Fedora-based systems. Here's how to set it up:
- First, import the project's GPG key to ensure package integrity:
sudo rpm --import https://raw.githubusercontent.com/offensive-security/kali-rpm/master/gpg.key - Add the repo to your system's package sources:
sudo tee /etc/yum.repos.d/kali-rpm.repo <<EOF [kali-rpm] name=Kali Linux RPM Packages baseurl=https://raw.githubusercontent.com/offensive-security/kali-rpm/master/repo/ enabled=1 gpgcheck=1 EOF - Now you can install the core Kali toolset with:
If you want the complete suite of every Kali tool (hundreds of packages), usesudo dnf install kali-linux-corekali-linux-allinstead—just be prepared for a longer install time.
3. Podman/Docker容器(最干净隔离)
If you don't want to clutter your Fedora system with extra packages, running Kali in a container is a perfect workaround. Fedora comes with Podman pre-installed, so you can spin up a full Kali environment in minutes:
- Pull the official Kali rolling image:
podman pull kalilinux/kali-rolling - Launch an interactive shell that has access to your local working directory (replace
/path/to/your/projectswith your actual folder):
This gives you full access to all Kali tools without making any permanent changes to your Fedora setup.podman run -it --rm -v /path/to/your/projects:/workdir kalilinux/kali-rolling
Quick Notes
- Third-party repos might not always have the absolute latest tool versions, so check for updates regularly.
- Only use
kali-linux-allif you truly need every single Kali tool—otherwise,kali-linux-coreor the Fedora repo curated list will be lighter and faster. - Always verify GPG keys when adding external repos to avoid malicious packages.
内容的提问来源于stack exchange,提问作者Richard




