Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###### Scenario
- echo https://dl-cdn.alpinelinux.org/alpine/v3.16/main > /etc/apk/repositories
- echo https://dl-cdn.alpinelinux.org/alpine/v3.16/community >> /etc/apk/repositories
- apk update
- apk upgrade
- apk add cargo
- cargo new ehlo
- cd ehlo
- cargo run
- rustc --version # 1.60
- cargo --version # 1.60
- ############################
- Welcome to Alpine!
- You can install packages with: apk add <package>
- You may change this message by editing /etc/motd.
- localhost:~# echo https://dl-cdn.alpinelinux.org/alpine/v3.16/main > /etc/apk/repositories
- localhost:~# echo https://dl-cdn.alpinelinux.org/alpine/v3.16/community >> /etc/apk/repositories
- localhost:~# apk update
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86/APKINDEX.tar.gz
- v3.16.7-140-g0276255a68b [https://dl-cdn.alpinelinux.org/alpine/v3.16/main]
- v3.16.7-139-g1ad42f58eb3 [https://dl-cdn.alpinelinux.org/alpine/v3.16/community]
- OK: 16607 distinct packages available
- localhost:~# apk upgrade
- Upgrading critical system libraries and apk-tools:
- (1/1) Upgrading apk-tools (2.12.7-r0 -> 2.12.9-r3)
- Executing busybox-1.33.1-r6.trigger
- Continuing the upgrade transaction with new apk-tools:
- (1/13) Installing alpine-baselayout-data (3.2.0-r23)
- (2/13) Upgrading musl (1.2.2-r3 -> 1.2.3-r3)
- (3/13) Upgrading busybox (1.33.1-r6 -> 1.35.0-r17)
- Executing busybox-1.35.0-r17.post-upgrade
- (4/13) Upgrading alpine-baselayout (3.2.0-r16 -> 3.2.0-r23)
- Executing alpine-baselayout-3.2.0-r23.pre-upgrade
- Executing alpine-baselayout-3.2.0-r23.post-upgrade
- (5/13) Upgrading alpine-keys (2.4-r0 -> 2.4-r1)
- (6/13) Upgrading ca-certificates-bundle (20191127-r5 -> 20230506-r0)
- (7/13) Upgrading libcrypto1.1 (1.1.1l-r0 -> 1.1.1w-r0)
- (8/13) Upgrading libssl1.1 (1.1.1l-r0 -> 1.1.1w-r0)
- (9/13) Upgrading ssl_client (1.33.1-r6 -> 1.35.0-r17)
- (10/13) Upgrading zlib (1.2.11-r3 -> 1.2.12-r3)
- (11/13) Upgrading scanelf (1.3.2-r0 -> 1.3.4-r0)
- (12/13) Upgrading musl-utils (1.2.2-r3 -> 1.2.3-r3)
- (13/13) Purging libretls (3.3.3p1-r2)
- Executing busybox-1.35.0-r17.trigger
- OK: 6 MiB in 14 packages
- localhost:~# apk add cargo
- (1/22) Installing rust-stdlib (1.60.0-r2)
- (2/22) Installing libgcc (11.2.1_git20220219-r2)
- (3/22) Installing libstdc++ (11.2.1_git20220219-r2)
- (4/22) Installing binutils (2.38-r3)
- (5/22) Installing libgomp (11.2.1_git20220219-r2)
- (6/22) Installing libatomic (11.2.1_git20220219-r2)
- (7/22) Installing gmp (6.2.1-r2)
- (8/22) Installing isl22 (0.22-r0)
- (9/22) Installing mpfr4 (4.1.0-r0)
- (10/22) Installing mpc1 (1.2.1-r0)
- (11/22) Installing gcc (11.2.1_git20220219-r2)
- (12/22) Installing musl-dev (1.2.3-r3)
- (13/22) Installing libffi (3.4.2-r1)
- (14/22) Installing xz-libs (5.2.5-r1)
- (15/22) Installing libxml2 (2.9.14-r2)
- (16/22) Installing llvm13-libs (13.0.1-r2)
- (17/22) Installing rust (1.60.0-r2)
- (18/22) Installing ca-certificates (20230506-r0)
- (19/22) Installing brotli-libs (1.0.9-r6)
- (20/22) Installing nghttp2-libs (1.47.0-r1)
- (21/22) Installing libcurl (8.4.0-r0)
- (22/22) Installing cargo (1.60.0-r2)
- Executing busybox-1.35.0-r17.trigger
- Executing ca-certificates-20230506-r0.trigger
- OK: 852 MiB in 36 packages
- localhost:~#
- localhost:~# cargo new ehlo
- Created binary (application) `ehlo` package
- localhost:~# cd ehlo
- localhost:~/ehlo# cargo run
- Compiling ehlo v0.1.0 (/root/ehlo)
- Finished dev [unoptimized + debuginfo] target(s) in 6.94s
- Running `target/debug/ehlo`
- Hello, world!
- localhost:~/ehlo# rustc --version
- rustc 1.60.0
- localhost:~/ehlo# cargo --version
- cargo 1.60.0
Advertisement
Add Comment
Please, Sign In to add comment