Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstaller broken on osx #875

Open
Hardcore-fs opened this issue Dec 21, 2020 · 5 comments
Open

Uninstaller broken on osx #875

Hardcore-fs opened this issue Dec 21, 2020 · 5 comments

Comments

@Hardcore-fs
Copy link

The packages for the mac osx 2.6 / 2.5 do not have a fully functional uninstaller.
inside the pkg is a number of scripts for installing & uninstalling on mac osx

The uninstaller fails depending on what version of mac osx you are running.
(not that it is even documented or easy to find)

if the package installs on the full range of mac osx from 10.10-10.15, then it should have an installer/uninstaller that correctly handles those platforms.

there is absolutely NO point in building agent 2.6 against mac osx 10.15, then allowing it to be installed on all platforms of mac osx, but then having an uninstaller that fails to remove the installed files on incorrect platforms, trashing them in the process.

@g-bougard
Copy link
Contributor

Hi @Hardcore-fs
sorry, for that issue, as I said in #873, perl was build on Catalina and I understood the mistake. I'm trying to rebuild perl to at least support 10.10.
Anyway, you're just complaining here telling somethink like "that's not working" and this won't help us to fix the problem if you don't report any error.

Actually, I can uninstall 2.6 agent on Catalina without any error. So I'm not fully agree with your sentence "uninstaller fails depending on what version of mac osx you are running" as this seems to work on Catalina. I can't test on older versions as I don't have any one at the moment.

So please can you be more accurate in your report ?

@Hardcore-fs
Copy link
Author

Hardcore-fs commented Dec 29, 2020

Hi,
the issue is that it cannot re-install 2.5 becasue 2.6 leaves something behind in the installation database.
therefore to my mind it is a failure. (and uninstall & re-install a previous version does not really need an explanation.)
it's just :
install 2.6, reboot, uninstall 2.6, reboot, try to install 2.5-> fail.. cannot install package that predates current version.

I tried to track it own, but have been unable to find out where the entry is.

@g-bougard
Copy link
Contributor

Hi @Hardcore-fs
I think there's still an issue with the packager but I can't find exactly what at the moment.
Anyway, here is a work-around:

  • after you uninstalled the agent, run the following command:
sudo pkgutil --forget org.fusioninventory-agent
  • then install the older package

@Hardcore-fs
Copy link
Author

Hi,
you will get it eventually....
maybe just run that command from the uninstaller.....

@g-bougard
Copy link
Contributor

Hi,
to answer your last proposition, the pkgutil man page explains this is not recommended...
Anyway I still don't have a good answer on the question "How a package should be cleanly uninstalled from a MacOS operating system ?"... On my point of view the Apple documentation is really poor about this process. So I leave the question open if anyone has a good answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants