Skip to content

Mac installer (.pkg) cannot be uninstalled with install.sh --uninstall #14679

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

Closed
amckinlay opened this issue Jun 5, 2014 · 1 comment
Closed

Comments

@amckinlay
Copy link

I installed the nightly using the .pkg. While attempting to uninstall the nightly, I downloaded the .tar.gz (same nightly) and encountered this error when running install.sh --uninstall:

➜ rust-nightly-x86_64-apple-darwin ./install.sh --uninstall
install: 
install: processing ./install.sh args
install: 
install: CFG_UNINSTALL        := 1 
install: CFG_PREFIX           := /usr/local 
install: CFG_LIBDIR           := /usr/local/lib 
install: CFG_MANDIR           := /usr/local/share/man 
install: 
install: validating ./install.sh args
install: 
install: verifying destination is writable
install: verifying destination is not the same as source
install: error: unable to find installation manifest at /usr/local/lib/rustlib

To overcome this issue I simply installed the nightly using install.sh and ran install.sh --uninstall.

It seems that the .pkg of the nightly does not place a manifest.in file into /usr/local/lib/rustlib.

@alexcrichton
Copy link
Member

The manifest file is generated by the install.sh script for installations that originated from the install.sh script. The pkg installer is intended to be uninstalled by pkg installers. If you google around for "uninstall pkg osx" you'll find a number of utilities intended for uninstalling pkg files.

Closing, as working as designed.

flip1995 pushed a commit to flip1995/rust that referenced this issue May 1, 2025
Follow up to rust-lang/rust-clippy#14650

Replaces uses in the form `s.as_str() == "literal"`

r? @y21

changelog: none
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