How to Install and Uninstall wasi-libc Package on Ubuntu 21.10 (Impish Indri)

Last updated: September 20,2024

1. Install "wasi-libc" package

Please follow the guidance below to install wasi-libc on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install wasi-libc

2. Uninstall "wasi-libc" package

This guide covers the steps necessary to uninstall wasi-libc on Ubuntu 21.10 (Impish Indri):

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

3. Information about the wasi-libc package on Ubuntu 21.10 (Impish Indri)

Package: wasi-libc
Architecture: all
Version: 0.0~git20200731.215adc8-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: 3016
Filename: pool/universe/w/wasi-libc/wasi-libc_0.0~git20200731.215adc8-2_all.deb
Size: 796268
MD5sum: 45f817ab52b57076673de82211b8892e
SHA1: 003f857743dad6e1fc11b6a006c4b09f314859c6
SHA256: cf680d3aa0069944d43c2ae84e65db38729da8cd7c86133f7ebd7bc4fde4ab42
SHA512: d0fd61c80e0f5204d10e3f68a97301c87607e4fbe53eb0b7e54608bb595a09f489ecdff51cc9a6b555bd4969d1736afefeb383804411a23c4ae4dc9bbd2260fe
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