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

linuxify uninstall fails because of python dependency #27

Open
abulka opened this issue Jan 12, 2021 · 2 comments
Open

linuxify uninstall fails because of python dependency #27

abulka opened this issue Jan 12, 2021 · 2 comments

Comments

@abulka
Copy link

abulka commented Jan 12, 2021

Tried to uninstall and got this error:

$ ./linuxify uninstall
Error: Refusing to uninstall /usr/local/Cellar/python@3.9/3.9.1_6
because it is required by cairo, gdk-pixbuf, glances, glib, gobject-introspection, graphviz, gts, harfbuzz, imagemagick, libheif, liblqr, librsvg, pango, plantuml, shared-mime-info, sphinx-doc and termtosvg, which are currently installed.
You can override this and force removal with:
  brew uninstall --ignore-dependencies python

not sure whether to follow the advice of brew or do something else?

@pkill37
Copy link
Owner

pkill37 commented Jan 12, 2021

Best is to keep these packages upon which others depend on, so as to not break anything.

Edit the linuxify script and replace line 142

brew uninstall -f $(echo "${linuxify_formulas[i]}" | cut -d ' ' -f1)

with

brew uninstall $(echo "${linuxify_formulas[i]}" | cut -d ' ' -f1) || true

and any errors there will be caught and ignored, effectively meaning any package that is depended upon will not be removed.

I'm rewriting the script so I'll take this in consideration. Thanks!

@gerardbosch
Copy link

Hello! I faced the same issue. Do you think you could or should add a commit to add the || true part in uninstall? Thx :)

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

3 participants