How to Install and Uninstall nodejs Package on Debian 12 (Bookworm)

Last updated: November 07,2024

1. Install "nodejs" package

Please follow the steps below to install nodejs on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install nodejs

2. Uninstall "nodejs" package

Please follow the guidance below to uninstall nodejs on Debian 12 (Bookworm):

$ sudo apt remove nodejs $ sudo apt autoclean && sudo apt autoremove

3. Information about the nodejs package on Debian 12 (Bookworm)

Package: nodejs
Version: 18.19.0+dfsg-6~deb12u1
Installed-Size: 3931
Maintainer: Debian Javascript Maintainers
Architecture: amd64
Replaces: libnode72 (<< 13), libnode83 (<< 16.13.2+really14.19.1~dfsg~), nodejs-legacy
Provides: node-types-node (= 18.18.14~18.19.0+dfsg-6~deb12u1)
Depends: libc6 (>= 2.34), libnode108 (= 18.19.0+dfsg-6~deb12u1)
Suggests: npm
Conflicts: nodejs-legacy
Breaks: libnode72 (<< 13), libnode83 (<< 16.13.2+really14.19.1~dfsg~), node-babel-runtime (<< 7), node-jest (<< 29~), node-typescript-types (<< 20210110~)
Description: evented I/O for V8 javascript - runtime executable
Description-md5: 0d0bbaed314d7d26588d112ee4ede074
Homepage: https://nodejs.org/
Multi-Arch: allowed
Recommends: ca-certificates, nodejs-doc
Section: web
Priority: optional
Filename: pool/updates/main/n/nodejs/nodejs_18.19.0+dfsg-6~deb12u1_amd64.deb
Size: 318736
SHA256: 81dd77001ae1d4019e06bece8a0f6b8a22e97580d13528196f8a89b400cf82c2

Package: nodejs
Version: 18.13.0+dfsg1-1
Installed-Size: 3710
Maintainer: Debian Javascript Maintainers
Architecture: amd64
Replaces: libnode72 (<< 13), libnode83 (<< 16.13.2+really14.19.1~dfsg~), nodejs-legacy
Provides: node-types-node (= 18.11.18~18.13.0+dfsg1-1)
Depends: libc6 (>= 2.34), libnode108 (= 18.13.0+dfsg1-1)
Recommends: ca-certificates, nodejs-doc
Suggests: npm
Conflicts: nodejs-legacy
Breaks: libnode72 (<< 13), libnode83 (<< 16.13.2+really14.19.1~dfsg~), node-babel-runtime (<< 7), node-jest (<< 29~), node-typescript-types (<< 20210110~)
Description: evented I/O for V8 javascript - runtime executable
Description-md5: 0d0bbaed314d7d26588d112ee4ede074
Multi-Arch: allowed
Homepage: https://nodejs.org/
Tag: devel::interpreter, devel::lang:ecmascript, devel::runtime, devel::web,
implemented-in::c++, implemented-in::ecmascript,
interface::commandline, interface::shell, protocol::dns,
protocol::http, protocol::tcp, role::program, scope::application,
works-with-format::json
Section: web
Priority: optional
Filename: pool/main/n/nodejs/nodejs_18.13.0+dfsg1-1_amd64.deb
Size: 303684
MD5sum: fa925e526baea2cbb493f89479ac4b9f
SHA256: bab122bcd9bb8588f7710d30efc88270d7c8abe3d749a209cdf2c42ffc626ca9