Skip to content

Uninstall instructions #167

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

Open
Sjors opened this issue Mar 14, 2025 · 2 comments
Open

Uninstall instructions #167

Sjors opened this issue Mar 14, 2025 · 2 comments

Comments

@Sjors
Copy link
Member

Sjors commented Mar 14, 2025

I would be useful to have instructions on which files to remove to fully undo a make install.

@Sjors
Copy link
Member Author

Sjors commented Mar 14, 2025

Looking at the install log, something like this:

sudo rm -rf /usr/local/lib/libmultiprocess.a \
/usr/local/include/mp \
/usr/local/bin/mpgen \
/usr/local/include/mp \
/usr/local/include/mpgen.mk \
/usr/local/lib/pkgconfig/libmultiprocess.pc \
/usr/local/lib/cmake/Libmultiprocess

That's a lot of files, so a make uninstall would be easier to use.

@ryanofsky
Copy link
Collaborator

It looks like a reasonable way to do this is:

xargs rm -v < build/install_manifest.txt

as described https://stackoverflow.com/questions/41471620/cmake-support-make-uninstall

It'd be probably a good idea to add that command to the documentation in https://github.com/bitcoin-core/libmultiprocess/blob/master/doc/install.md

It would also be possible to add a more portable make uninstall target as described https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#can-i-do-make-uninstall-with-cmake if that is not overkill.

Would welcome opinions about this, or PRs implementing any solution.

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