How To Install rubygem-fakefs on Fedora 36
Introduction
In this tutorial we learn how to install rubygem-fakefs
on Fedora 36.
What is rubygem-fakefs
A fake filesystem. Use it in your tests.
We can use yum
or dnf
to install rubygem-fakefs
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-fakefs.
Install rubygem-fakefs 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-fakefs
using dnf
by running the following command:
sudo dnf -y install rubygem-fakefs
Install rubygem-fakefs 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-fakefs
using yum
by running the following command:
sudo yum -y install rubygem-fakefs
How To Uninstall rubygem-fakefs on Fedora 36
To uninstall only the rubygem-fakefs
package we can use the following command:
sudo dnf remove rubygem-fakefs
rubygem-fakefs Package Contents on Fedora 36
/usr/share/gems/gems/fakefs-1.2.2
/usr/share/gems/gems/fakefs-1.2.2/LICENSE
/usr/share/gems/gems/fakefs-1.2.2/lib
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/base.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/dir.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/fake
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/fake/dir.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/fake/file.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/fake/inode.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/fake/symlink.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/file.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/file_system.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/file_test.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/fileutils.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/globber.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/kernel.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/pathname.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/safe.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/spec_helpers.rb
/usr/share/gems/gems/fakefs-1.2.2/lib/fakefs/version.rb
/usr/share/gems/specifications/fakefs-1.2.2.gemspec
References
Summary
In this tutorial we learn how to install rubygem-fakefs
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).