Étapes à suivre pour répliquer:
Ubuntu 16.04 xenial (x86-64)
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
Je veux désinstaller nodejs
et npm
et j'ai vu plusieurs billets suggérant qu'il s'agit du moyen le plus courant:
sudo apt-get purge --auto-remove nodejs
Cependant, cela produit une invite qui semble faire référence à des dépendances qui, si elles étaient supprimées, semblaient causer des problèmes.
Quel est le meilleur moyen "d'annuler" l'installation de nodejs
et npm
?
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
gyp* libboost-python1.58.0* libjs-inherits* libjs-node-uuid*
libjs-underscore* libssl-dev* libssl-doc* libuv1* libuv1-dev*
linux-headers-4.4.0-18* linux-headers-4.4.0-18-generic*
linux-headers-4.4.0-21* linux-headers-4.4.0-21-generic*
linux-image-4.4.0-18-generic* linux-image-4.4.0-21-generic*
linux-image-extra-4.4.0-18-generic* linux-image-extra-4.4.0-21-generic*
linux-signed-image-4.4.0-18-generic* linux-signed-image-4.4.0-21-generic*
node-abbrev* node-ansi* node-ansi-color-table* node-archy* node-async*
node-block-stream* node-combined-stream* node-cookie-jar*
node-delayed-stream* node-forever-agent* node-form-data* node-fstream*
node-fstream-ignore* node-github-url-from-git* node-glob* node-graceful-fs*
node-gyp* node-inherits* node-ini* node-json-stringify-safe* node-lockfile*
node-lru-cache* node-mime* node-minimatch* node-mkdirp* node-mute-stream*
node-node-uuid* node-nopt* node-normalize-package-data* node-npmlog*
node-once* node-osenv* node-qs* node-read* node-read-package-json*
node-request* node-retry* node-rimraf* node-semver* node-sha* node-sigmund*
node-slide* node-tar* node-tunnel-agent* node-underscore* node-which*
nodejs* nodejs-dev* npm* python-configobj* python-pycurl* python-pyexiv2*
python-pyexiv2-doc*
0 to upgrade, 0 to newly install, 72 to remove and 0 not to upgrade.
After this operation, 631 MB disk space will be freed.
Do you want to continue? [Y/n]
Modifier:
Voici le résultat de sudo apt-get purge nodejs
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gyp libboost-python1.58.0 libjs-inherits libjs-node-uuid libjs-underscore
libssl-dev libssl-doc libuv1 libuv1-dev linux-headers-4.4.0-18
linux-headers-4.4.0-18-generic linux-headers-4.4.0-21
linux-headers-4.4.0-21-generic linux-image-4.4.0-18-generic
linux-image-4.4.0-21-generic linux-image-extra-4.4.0-18-generic
linux-image-extra-4.4.0-21-generic linux-signed-image-4.4.0-18-generic
linux-signed-image-4.4.0-21-generic python-configobj python-pycurl
python-pyexiv2 python-pyexiv2-doc
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
node-abbrev* node-ansi* node-ansi-color-table* node-archy* node-async*
node-block-stream* node-combined-stream* node-cookie-jar*
node-delayed-stream* node-forever-agent* node-form-data* node-fstream*
node-fstream-ignore* node-github-url-from-git* node-glob* node-graceful-fs*
node-gyp* node-inherits* node-ini* node-json-stringify-safe* node-lockfile*
node-lru-cache* node-mime* node-minimatch* node-mkdirp* node-mute-stream*
node-node-uuid* node-nopt* node-normalize-package-data* node-npmlog*
node-once* node-osenv* node-qs* node-read* node-read-package-json*
node-request* node-retry* node-rimraf* node-semver* node-sha* node-sigmund*
node-slide* node-tar* node-tunnel-agent* node-underscore* node-which*
nodejs* nodejs-dev* npm*
0 to upgrade, 0 to newly install, 49 to remove and 0 not to upgrade.
After this operation, 27.6 MB disk space will be freed.
Do you want to continue? [Y/n]
autoremove
. Qu'est-ce qui se passe quand vous venez de courirsudo apt-get purge nodejs
?