Skip to content

Node support for apt #4622

Closed Answered by mateuspaulino
TracerDS asked this question in Q&A
Jul 15, 2024 · 0 comments · 12 replies
Discussion options

You must be logged in to vote

Hi @TracerDS, it is possible but it will take a few steps:

sudo apt update
sudo apt install -y build-essential fakeroot dpkg-dev

Download Node.js Source:
Get the source code for the version of Node.js you want to package.

VERSION=v16.16.0  # Replace with your desired version
wget https://nodejs.org/dist/$VERSION/node-$VERSION.tar.gz
tar -xzf node-$VERSION.tar.gz
cd node-$VERSION

Build Node.js from source.

./configure
make -j$(nproc)

Install Node.js into a directory which will be used to create the .deb package.

mkdir -p ../nodejs-staging/usr/local
make install DESTDIR=$(pwd)/../nodejs-staging/usr/local

Create the necessary files for the .deb package.

    mkdir -p ../nodejs-staging/DEB…

Replies: 0 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@TracerDS
Comment options

@mhdawson
Comment options

@TracerDS
Comment options

@mhdawson
Comment options

Comment options

You must be logged in to vote
4 replies
@TracerDS
Comment options

@ovflowd
Comment options

ovflowd Jul 19, 2024
Collaborator

@TracerDS
Comment options

@ovflowd
Comment options

ovflowd Jul 19, 2024
Collaborator

Answer selected by avivkeller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants