cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove McAfee agent from linux client?

Jump to solution

Hi all,

Previously I have installed the agent on Windows client but now I went ahead and installed it on linux.  I need to remove the install.sh file because I'm using Ubuntu and I should've used installdeb.sh instead.

I put the file under my home directory and installed it from there... it did say it was successfully installed but probably not right.

Is there an easy way to do this?

Thanks

1 Solution

Accepted Solutions

Re: How to remove McAfee agent from linux client?

Jump to solution

numan@Keynote:/$ sudo dpkg --purge mfecma

(Reading database ... 346411 files and directories currently installed.)

Removing mfecma (4.8.0) ...

Stopping and unregistering CMA start up script...

Killing McAfee Mesh Service...

Removing any system startup links for /etc/init.d/cma ...

   /etc/rc2.d/K35cma

   /etc/rc2.d/S91cma

   /etc/rc3.d/K35cma

   /etc/rc3.d/S91cma

   /etc/rc4.d/K35cma

   /etc/rc4.d/S91cma

   /etc/rc5.d/K35cma

   /etc/rc5.d/S91cma

Reverting linker cache ...

Stopping dependent services ...

Restarting stopped services ...

Purging configuration files for mfecma (4.8.0) ...

dpkg: warning: while removing mfecma, directory '/var/lock/subsys' not empty so not removed

Processing triggers for ureadahead (0.100.0-16) ...

numan@Keynote:/$

numan@Keynote:/$ sudo dpkg --purge mfert

(Reading database ... 346203 files and directories currently installed.)

Removing mfert (2.0) ...

Runtime uninstalled successfully

dpkg: warning: while removing mfert, directory '/opt' not empty so not removed

numan@Keynote:/$

(This is the command I ran I think it uninstalled everything)

The following commands will cleanly uninstall and remove package-related database entries from the system database. No additional commands are needed.

  • dpkg --purge mfecma
  • dpkg --purge mfert

If the folders still exist, the following commands can be executed to remove agent-specific folders:

  • rm –rf  /opt/McAfee/cma
  • rm – rf  /etc/cma.d
4 Replies

Re: How to remove McAfee agent from linux client?

Jump to solution

On RHEL 4+ & Ubuntu 8.04+ you can install/remove the agent through ePO.. but otherwise

For Linux removal just do:

rpm -e MFEcma

rpm -e MFErt

run the commands in that order and then delete them from your system tree before installing the Ubuntu client

Re: How to remove McAfee agent from linux client?

Jump to solution

I tried to remove the files from the command above and it says that the package is not installed

numan@Keynote:~$ rpm -e MFEcma

rpm: RPM should not be used directly install RPM packages, use Alien instead!

rpm: However assuming you know what you are doing...

error: package MFEcma is not installed

numan@Keynote:~$ rpm -e MFErt

rpm: RPM should not be used directly install RPM packages, use Alien instead!

rpm: However assuming you know what you are doing...

error: package MFErt is not installed

numan@Keynote:~$

-------------

(Where I have the install.sh)

numan@Keynote:~$ pwd

/home/numan

numan@Keynote:~$ ls

Desktop    Downloads   Music     Public     Videos

Documents  install.sh  Pictures  Templates

Re: How to remove McAfee agent from linux client?

Jump to solution

numan@Keynote:/$ sudo dpkg --purge mfecma

(Reading database ... 346411 files and directories currently installed.)

Removing mfecma (4.8.0) ...

Stopping and unregistering CMA start up script...

Killing McAfee Mesh Service...

Removing any system startup links for /etc/init.d/cma ...

   /etc/rc2.d/K35cma

   /etc/rc2.d/S91cma

   /etc/rc3.d/K35cma

   /etc/rc3.d/S91cma

   /etc/rc4.d/K35cma

   /etc/rc4.d/S91cma

   /etc/rc5.d/K35cma

   /etc/rc5.d/S91cma

Reverting linker cache ...

Stopping dependent services ...

Restarting stopped services ...

Purging configuration files for mfecma (4.8.0) ...

dpkg: warning: while removing mfecma, directory '/var/lock/subsys' not empty so not removed

Processing triggers for ureadahead (0.100.0-16) ...

numan@Keynote:/$

numan@Keynote:/$ sudo dpkg --purge mfert

(Reading database ... 346203 files and directories currently installed.)

Removing mfert (2.0) ...

Runtime uninstalled successfully

dpkg: warning: while removing mfert, directory '/opt' not empty so not removed

numan@Keynote:/$

(This is the command I ran I think it uninstalled everything)

The following commands will cleanly uninstall and remove package-related database entries from the system database. No additional commands are needed.

  • dpkg --purge mfecma
  • dpkg --purge mfert

If the folders still exist, the following commands can be executed to remove agent-specific folders:

  • rm –rf  /opt/McAfee/cma
  • rm – rf  /etc/cma.d

Re: How to remove McAfee agent from linux client?

Jump to solution

If you used dpkg that is for uninstalling the Ubuntu client.. i guess you needed to remove the Ubuntu agent rather than the Linux one