Mercurial > code > home > repos > infra
changeset 147:51a48aeca8ba
node/npm fixes
author | drewp@bigasterisk.com |
---|---|
date | Sat, 11 Mar 2023 12:19:25 -0800 |
parents | 2065998876e4 |
children | 2016d1096f49 |
files | package_lists.py packages.py templates/sources.list.j2 |
diffstat | 3 files changed, 10 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/package_lists.py Sat Mar 11 12:17:56 2023 -0800 +++ b/package_lists.py Sat Mar 11 12:19:25 2023 -0800 @@ -17,7 +17,10 @@ 'dirmngr', 'gnupg2', ] - +non_pi_setup = [ + 'nodejs', # alt source, contains npm + # 'npm', +] general = [ 'apt-listchanges', 'aptitude', @@ -47,7 +50,6 @@ non_pi = [ 'lpr', 'nfs-client', - 'nodejs', # alt source, includes npm 'podman-docker', # updated with https://podman.io/getting-started/installation # 'python3-dulwich', # desired, but it may depend on an old python3 'python3-invoke',
--- a/packages.py Sat Mar 11 12:17:56 2023 -0800 +++ b/packages.py Sat Mar 11 12:19:25 2023 -0800 @@ -21,8 +21,6 @@ def pnpm(): - if host not in ['plus', 'prime', 'slash', 'bang', 'dot']: - return server.shell([ # https://github.com/pnpm/pnpm/releases # but also https://pnpm.io/installation#compatibility @@ -47,6 +45,7 @@ apt.packages(packages=package_lists.setup, **kw) if not is_pi: + apt.packages(packages=package_lists.non_pi_setup) if host.name != 'pipe': apt.packages(packages=['reptyr']) kitty()
--- a/templates/sources.list.j2 Sat Mar 11 12:17:56 2023 -0800 +++ b/templates/sources.list.j2 Sat Mar 11 12:19:25 2023 -0800 @@ -12,7 +12,7 @@ deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe -deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_16.x jammy main +deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_18.x jammy main deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ unstable main @@ -32,7 +32,7 @@ deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe -deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_16.x jammy main +deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_18.x jammy main {% endif %} {% if host.name in ['ditto'] %} @@ -64,9 +64,8 @@ deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe -deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_16.x jammy main +deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_18.x jammy main deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main -deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ unstable main {% endif %} {% if host.name in ['dot'] %} @@ -82,9 +81,8 @@ deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe -deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_16.x jammy main +deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_18.x jammy main deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main -deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ unstable main {% endif %} {% if host.name in ['pipe'] %} @@ -136,5 +134,5 @@ deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe -deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_16.x jammy main +deb [signed-by=/etc/apt/trusted.gpg] https://deb.nodesource.com/node_18.x jammy main {% endif %}