Linux/alpine:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第10行: 第10行:
{{shc|<syntaxhighlight lang="bash">
{{shc|<syntaxhighlight lang="bash">
apk update && apk --no-cache add git openssh python2 bash nodejs=14.16.1-r1 npm</syntaxhighlight>|$|/home/kangkk}}
apk update && apk --no-cache add git openssh python2 bash nodejs=14.16.1-r1 npm</syntaxhighlight>|$|/home/kangkk}}
 
在 drone 中配置,eq:
{{shc|<syntaxhighlight lang="xml">
steps:
- name: build-plugin-ps
  image: node:14.18.1-alpine
  environment:
    ELECTRON_MIRROR: http://npm.taobao.org/mirrors/electron/
  commands:
  - apk update && apk --no-cache add git openssh python2 bash autoconf</syntaxhighlight>|$|/home/kangkk}}
=== 参考 ===
=== 参考 ===
https://pkgs.alpinelinux.org/packages
https://pkgs.alpinelinux.org/packages

2021年12月20日 (一) 03:43的版本

start

package

apk

安装指定版本的软件。

/home/kangkk
apk add packagename=1.1.1-r0
#
apk add "packagename>1.1.1-r0"

eq:

/home/kangkk
apk update && apk --no-cache add git openssh python2 bash nodejs=14.16.1-r1 npm

在 drone 中配置,eq:

/home/kangkk
steps:
- name: build-plugin-ps
  image: node:14.18.1-alpine
  environment:
    ELECTRON_MIRROR: http://npm.taobao.org/mirrors/electron/
  commands:
  - apk update && apk --no-cache add git openssh python2 bash autoconf

参考

https://pkgs.alpinelinux.org/packages