cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 5

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
Former Member
Not applicable
Report Inappropriate Content
Message 4 of 5

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

View solution in original post

4 Replies
Former Member
Not applicable
Report Inappropriate Content
Message 2 of 5

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

Former Member
Not applicable
Report Inappropriate Content
Message 3 of 5

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

Former Member
Not applicable
Report Inappropriate Content
Message 4 of 5

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

View solution in original post

Former Member
Not applicable
Report Inappropriate Content
Message 5 of 5

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

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community