How can you remove netexec without removing any dependencies?

i simply want to remove netexec (kali version) because there is a hand full of bugs that are fix on the latest version and want to remove this version (without removing the dependencies) and installing the new one with pipx

this is the third or fourth time i have to do a reinstall because issues similar to this, installing the same thing even via different mean make my kali go boom

└─$ sudo dpkg -r netexec                      
dpkg: dependency problems prevent removal of netexec:
 kali-tools-top10 depends on netexec.
 kali-linux-headless depends on netexec.

dpkg: error processing package netexec (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 netexec

└─$ sudo apt remove netexec --no-autoremove      
<SNIP>
REMOVING:
  kali-linux-default  kali-linux-headless  kali-tools-top10  netexec
                                                                                                                                                                        
Summary:
  Upgrading: 0, Installing: 0, Removing: 4, Not Upgrading: 0
  Freed space: 3,480 kB
<SNIP>

netexec is considered a core part of a kali, so there is no way to remove it without removing the metapackages that depend on it. pipx should still be able to install netexec without removing the system one because pipx installs into your user directory.

2 Likes

I was about to say the same steev. Lol!!!