Skip to main content

xpm uninstall

Purpose

Uninstall dependencies.

Synopsis

xpm uninstall [<options> ...] [@scope/]name[@version]...

Aliases:

  • un
  • uni
  • unin
  • unintsall
  • unlink
  • rm
  • r

Description

Uninstall/remove one or more packages from the project available in the current folder or from the user global xPacks store.

Options

Help (--help)

% xpm uninstall --help

xPack project manager - uninstall package(s)
Usage: xpm uninstall [options...] [--global] [--config <config_name>]
[--dry-run] [--no-save] [--ignore-errors]
[[@<scope>/]<name>[@<version]...

Uninstall options:
  -g|--global Uninstall the global package(s) (optional)
  -c|--config <config_name> Show the configuration specific dependencies (optional)
  -n|--dry-run Pretend to uninstall the package (optional)
  --no-save Prevent saving to dependencies (optional)
  --ignore-errors Ignore script errors (optional)

Common options:
  --loglevel <level> Set log level (silent|warn|info|verbose|debug|trace)
  -s|--silent Disable all messages (--loglevel silent)
  -q|--quiet Mostly quiet, warnings and errors (--loglevel warn)
  --informative Informative (--loglevel info)
  -v|--verbose Verbose (--loglevel verbose)
  -d|--debug Debug messages (--loglevel debug)
  -dd|--trace Trace messages (--loglevel trace, -d -d)
  --no-update-notifier Skip check for a more recent version
  -C <folder> Set current folder

xpm -h|--help Quick help
xpm --version Show version
xpm -i|--interactive Enter interactive mode

npm xpm@0.20.8 '/Users/ilg/.nvm/versions/node/v20.18.0/lib/node_modules/xpm'
Home page: <https://xpack.github.io/xpm-preview/>
Bug reports: <https://github.com/xpack/xpm-js/issues>

Global uninstall (-g|--global)

Remove package(s) from the global xPacks store.

Configuration (-c|--config)

Uninstall package(s) from an existing configuration build folder instead of the top project folder.

Dry-run (-n|--dry-run)

Do everything except to actually uninstall the package(s).

Prevent saving to dependencies (--no-save)

Prevent removing the dependencies and updating the package.json file.

Examples

Remove local packages

Remove source dependency:

% xpm uninstall @micro-os-plus/micro-test-plus --verbose -C tests
xPack project manager - uninstall package(s)

Symlink 'xpacks/@micro-os-plus/micro-test-plus' removed

'xpm uninstall' completed in 105 ms.

Remove binary dependency:

% xpm uninstall @xpack-dev-tools/cmake --verbose -C tests
xPack project manager - uninstall package(s)

Symlink 'xpacks/.bin/ccmake' removed
Symlink 'xpacks/.bin/cmake' removed
Symlink 'xpacks/.bin/cpack' removed
Symlink 'xpacks/.bin/ctest' removed
Symlink 'xpacks/@xpack-dev-tools/cmake' removed
package.json devDependencies['@xpack-dev-tools/cmake'] removed

'xpm uninstall' completed in 97 ms.

Remove source dependency from configuration:

% xpm uninstall @micro-os-plus/architecture-synthetic-posix --config native-cmake-clang-debug  --verbose -C tests
xPack project manager - uninstall package(s)

Symlink 'build/native-cmake-clang-debug/xpacks/@micro-os-plus/architecture-synthetic-posix' removed

'xpm uninstall' completed in 119 ms.

Remove binary dependencies from a configuration:

% xpm uninstall @xpack-dev-tools/clang --config native-cmake-clang-debug  --verbose -C tests
xPack project manager - uninstall package(s)

Symlink 'xpacks/.bin/analyze-build' removed
Symlink 'xpacks/.bin/clang' removed
Symlink 'xpacks/.bin/clang++' removed
Symlink 'xpacks/.bin/clang-check' removed
Symlink 'xpacks/.bin/clang-cl' removed
Symlink 'xpacks/.bin/clang-cpp' removed
Symlink 'xpacks/.bin/clang-doc' removed
Symlink 'xpacks/.bin/clang-format' removed
Symlink 'xpacks/.bin/clang-include-cleaner' removed
Symlink 'xpacks/.bin/clang-linker-wrapper' removed
Symlink 'xpacks/.bin/clang-refactor' removed
Symlink 'xpacks/.bin/clang-rename' removed
Symlink 'xpacks/.bin/clang-repl' removed
Symlink 'xpacks/.bin/clang-scan-deps' removed
Symlink 'xpacks/.bin/clang-tblgen' removed
Symlink 'xpacks/.bin/clang-tidy' removed
Symlink 'xpacks/.bin/clangd' removed
Symlink 'xpacks/.bin/darwin-debug' removed
Symlink 'xpacks/.bin/diagtool' removed
Symlink 'xpacks/.bin/git-clang-format' removed
Symlink 'xpacks/.bin/hmaptool' removed
Symlink 'xpacks/.bin/ld.lld' removed
Symlink 'xpacks/.bin/ld64.lld' removed
Symlink 'xpacks/.bin/llc' removed
Symlink 'xpacks/.bin/lld' removed
Symlink 'xpacks/.bin/lld-link' removed
Symlink 'xpacks/.bin/lldb' removed
Symlink 'xpacks/.bin/lldb-argdumper' removed
Symlink 'xpacks/.bin/lldb-instr' removed
Symlink 'xpacks/.bin/lldb-server' removed
Symlink 'xpacks/.bin/lldb-vscode' removed
Symlink 'xpacks/.bin/lli' removed
Symlink 'xpacks/.bin/llvm-addr2line' removed
Symlink 'xpacks/.bin/llvm-ar' removed
Symlink 'xpacks/.bin/llvm-as' removed
Symlink 'xpacks/.bin/llvm-bitcode-strip' removed
Symlink 'xpacks/.bin/llvm-config' removed
Symlink 'xpacks/.bin/llvm-cov' removed
Symlink 'xpacks/.bin/llvm-cxxdump' removed
Symlink 'xpacks/.bin/llvm-cxxfilt' removed
Symlink 'xpacks/.bin/llvm-cxxmap' removed
Symlink 'xpacks/.bin/llvm-debuginfo-analyzer' removed
Symlink 'xpacks/.bin/llvm-debuginfod' removed
Symlink 'xpacks/.bin/llvm-debuginfod-find' removed
Symlink 'xpacks/.bin/llvm-diff' removed
Symlink 'xpacks/.bin/llvm-dis' removed
Symlink 'xpacks/.bin/llvm-dlltool' removed
Symlink 'xpacks/.bin/llvm-dwarfutil' removed
Symlink 'xpacks/.bin/llvm-lib' removed
Symlink 'xpacks/.bin/llvm-libtool-darwin' removed
Symlink 'xpacks/.bin/llvm-nm' removed
Symlink 'xpacks/.bin/llvm-objcopy' removed
Symlink 'xpacks/.bin/llvm-objdump' removed
Symlink 'xpacks/.bin/llvm-otool' removed
Symlink 'xpacks/.bin/llvm-profdata' removed
Symlink 'xpacks/.bin/llvm-ranlib' removed
Symlink 'xpacks/.bin/llvm-rc' removed
Symlink 'xpacks/.bin/llvm-readelf' removed
Symlink 'xpacks/.bin/llvm-readobj' removed
Symlink 'xpacks/.bin/llvm-remark-size-diff' removed
Symlink 'xpacks/.bin/llvm-remarkutil' removed
Symlink 'xpacks/.bin/llvm-sim' removed
Symlink 'xpacks/.bin/llvm-size' removed
Symlink 'xpacks/.bin/llvm-strings' removed
Symlink 'xpacks/.bin/llvm-strip' removed
Symlink 'xpacks/.bin/llvm-symbolizer' removed
Symlink 'xpacks/.bin/llvm-tapi-diff' removed
Symlink 'xpacks/.bin/llvm-tblgen' removed
Symlink 'xpacks/.bin/llvm-tli-checker' removed
Symlink 'xpacks/.bin/llvm-windres' removed
Symlink 'xpacks/.bin/run-clang-tidy' removed
Symlink 'xpacks/.bin/scan-build-py' removed
Symlink 'xpacks/.bin/set-xcode-analyzer' removed
Symlink 'xpacks/.bin/split-file' removed
Symlink 'xpacks/.bin/wasm-ld' removed
Symlink 'build/native-cmake-clang-debug/xpacks/@xpack-dev-tools/clang' removed

'xpm uninstall' completed in 153 ms.

Remove global packages

Remove a specific version:

% xpm uninstall --global @xpack-3rd-party/googletest@1.11.0-1 --verbose
xPack project manager - uninstall package(s)

Changing permissions to read-write...
'/Users/ilg/Library/xPacks/@xpack-3rd-party/googletest/1.11.0-1' removed

'xpm uninstall' completed in 120 ms.

Remove all installed versions:

% xpm uninstall --global @xpack-3rd-party/libucontext --verbose
xPack project manager - uninstall package(s)

Changing permissions to read-write...
'/Users/ilg/Library/xPacks/@xpack-3rd-party/libucontext' removed

'xpm uninstall' completed in 226 ms.