Removed packages continuing network activity [Solved]
1d 18h ago by aussie.zone/u/YeahToast in linux@lemmy.ml from aussie.zone
Hi, Just wondering if Someone can help me out. I previously downloaded PIA but have uninstalled it some time ago with the sudo apt purge. However, I've now found that there is still ongoing network activity through the Pihole. I've attempted to look through the DPKG --list as well as the apt list which does gave "pia/noble 3.107-2build" (however purge states there is no pia installed), but can't seem to uninstall PIA any further. Does anyone know how I can further uninstall any packages so that this is no longer occurring? For now ive blocked access through pihole.
Many thanks in advance!
Did you reboot?
It could be that a system service was installed, and activated. This service could stay running even after the packages are removed, since the programs would remain in memory.
Yeah, i uninstalled it months ago. several reboots. Thanks for the heads up re: system service. I ran systemctl --type=service --state=running and found the cheeky bugger running there! Have now removed the service, thanks so much!
Packages are installed and removed from disk, but unless you kill the offending process(es), it might remain active in memory, depending on the quality of the install/remove script.
You can use ps, pgrep or any number of utils to figure out which process is the one to get rid of, and just kill it.
Thanks for your reply. The term 'system service' let me search the right terms. ps & pgrep are not utilities im really familiar with, i'll read up on them, thanks.
Wait, pgrep exists and I don't have to
ps -ax |grep processName
all the time? That could have saved me so much time for so long.
Thanks!
Yeah, it's very handy. The switches are a bit different, depending on what you're trying to identify, but
pgrep -l <term>
Will usually get it done.