How To Install rubygem-memfs on Fedora 36

In this tutorial we learn how to install rubygem-memfs in Fedora 36. rubygem-memfs is Fake file system that can be used for tests

Introduction

In this tutorial we learn how to install rubygem-memfs on Fedora 36.

What is rubygem-memfs

MemFs provides a fake file system that can be used for tests. Strongly inspired by FakeFS.

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

Install rubygem-memfs 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 rubygem-memfs using dnf by running the following command:

sudo dnf -y install rubygem-memfs

Install rubygem-memfs 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 rubygem-memfs using yum by running the following command:

sudo yum -y install rubygem-memfs

How To Uninstall rubygem-memfs on Fedora 36

To uninstall only the rubygem-memfs package we can use the following command:

sudo dnf remove rubygem-memfs

rubygem-memfs Package Contents on Fedora 36

/usr/share/gems/gems/memfs-1.0.0
/usr/share/gems/gems/memfs-1.0.0/LICENSE.txt
/usr/share/gems/gems/memfs-1.0.0/lib
/usr/share/gems/gems/memfs-1.0.0/lib/memfs
/usr/share/gems/gems/memfs-1.0.0/lib/memfs.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/dir.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/fake
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/fake/directory.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/fake/entry.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/fake/file
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/fake/file.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/fake/file/content.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/fake/symlink.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/file
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/file.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/file/stat.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/file_system.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/filesystem_access.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/io.rb
/usr/share/gems/gems/memfs-1.0.0/lib/memfs/version.rb
/usr/share/gems/specifications/memfs-1.0.0.gemspec

References

Summary

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