How To Install binaryen on Fedora 36

In this tutorial we learn how to install binaryen in Fedora 36. binaryen is Compiler and toolchain infrastructure library for WebAssembly

Introduction

In this tutorial we learn how to install binaryen on Fedora 36.

What is binaryen

Binaryen is a compiler and toolchain infrastructure library for WebAssembly, written in C++. It aims to make compiling to WebAssembly easy, fast, and effective * Easy from JavaScript. It accepts input in WebAssembly-like form but also accepts a general control flow graph for compilers that prefer that. * Fast completely parallel codegen and optimization, using all available CPU cores. Binaryen’s IR also compiles down to WebAssembly extremely easily and quickly because it is essentially a subset of WebAssembly. * Effective significantly (e.g. local coloring to coalesce local variables; dead code elimination; precomputing expressions when possible at compile time; etc.). These optimizations aim to make Binaryen powerful enough to be used as a compiler backend by itself. One specific area of focus is on WebAssembly-specific optimizations (that general-purpose compilers might not do), which you can think of as wasm minification , similar to minification for JavaScript, CSS, etc., all of which are language-specific (an example of such an optimization is block return value generation in SimplifyLocals).

We can use yum or dnf to install binaryen on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install binaryen.

Install binaryen on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install binaryen using dnf by running the following command:

sudo dnf -y install binaryen

Install binaryen on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install binaryen using yum by running the following command:

sudo yum -y install binaryen

How To Uninstall binaryen on Fedora 36

To uninstall only the binaryen package we can use the following command:

sudo dnf remove binaryen

binaryen Package Contents on Fedora 36

/usr/bin/wasm-as
/usr/bin/wasm-ctor-eval
/usr/bin/wasm-dis
/usr/bin/wasm-emscripten-finalize
/usr/bin/wasm-fuzz-types
/usr/bin/wasm-metadce
/usr/bin/wasm-opt
/usr/bin/wasm-reduce
/usr/bin/wasm-shell
/usr/bin/wasm-split
/usr/bin/wasm2js
/usr/include/binaryen-c.h
/usr/include/wasm-delegations.def
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/a4761be353433f8079531135b227283c23b259
/usr/lib/.build-id/32
/usr/lib/.build-id/32/f7cd2d8881449dbe1869ff010162424ee66273
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/1dea519662db6176d52bdd33fdecdbef0e1010
/usr/lib/.build-id/92
/usr/lib/.build-id/92/5ff4ca01960096d3651944f8c79f308bda5210
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/3e1e196cf1e3340a71e1c5461287fa203158b1
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/f3b2794daf619d7a0b09d451f649d4257286b1
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/c75e6dcd89becc4ed3e98956e526eaac7aca1b
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/615dfd01baf3000df891f9937caecf306caa5b
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/98354b1f71243b7cdb5a7e65a62c77bd3555da
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/7b99069d03f80c90682820cf3f4ef05fefba40
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/8dff759f2ceda566b4a85b845ff46fc3d2127d
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/e86773f29b63a81bc2093b023de81e901a6d22
/usr/lib64/binaryen/libbinaryen.so
/usr/share/doc/binaryen
/usr/share/doc/binaryen/README.md
/usr/share/licenses/binaryen
/usr/share/licenses/binaryen/LICENSE

References

Summary

In this tutorial we learn how to install binaryen on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).