How to Install and Uninstall wasi-libc Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 16,2024

1. Install "wasi-libc" package

This guide covers the steps necessary to install wasi-libc on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install wasi-libc

2. Uninstall "wasi-libc" package

This tutorial shows how to uninstall wasi-libc on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove wasi-libc $ sudo apt autoclean && sudo apt autoremove

3. Information about the wasi-libc package on Ubuntu 20.10 (Groovy Gorilla)

Package: wasi-libc
Architecture: all
Version: 0.0~git20200319.9efc2f4-2
Multi-Arch: foreign
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Rust Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2951
Filename: pool/universe/w/wasi-libc/wasi-libc_0.0~git20200319.9efc2f4-2_all.deb
Size: 782036
MD5sum: af680f0c86716f3ac7e7cc0a150359b8
SHA1: 577bdb593394c664d6a710944bb0970026c30632
SHA256: 231f1556fa0e0807f25926494cd6a895f446d2a082e6ab1773b96fd67e3d2e11
SHA512: 4eaddfa94b58a3ce58f5b639b776a1a2d645844081ba037f440daadef9f804508a256421bf2b02b2f5b0412f1387ecdc941f6435e934b5cae787a7112baae600
Homepage: https://github.com/CraneStation/wasi-libc
Description-en: WASI libc implementation for WebAssembly
This is a work in progress. It's usable for many purposes, though the APIs
aren't stable yet. For example, this is used by the Rust compiler to build
its standard library for the wasm32-wasi target.
.
First, it's a usable libc. It builds a "libc" which can be used by compilers,
such as Clang 8.0, using the wasm32-wasi target. It's a work in progress, but
it is already sufficient to run basic programs.
.
Second, it's a "reference" implementation, which means the interfaces defined
here can be used by other tools and libraries, even if they don't use all the
actual implementations here. For example, we don't expect everyone will want to
use the exact malloc implementation provided here, but tools and libraries
using an ABI-compatible malloc interface will be able to interoperate
regardless of which actual implementation is used.
.
Third, it's an example showing the use of the WASI API. The libc functionality
is implemented using calls to WASI functions.
Description-md5: 5c76134a8fd2c45d2a718c523fcce37f