How To Install rubygem-foreigner on Fedora 36
Introduction
In this tutorial we learn how to install rubygem-foreigner
on Fedora 36.
What is rubygem-foreigner
Adds helpers to migrations and correctly dumps foreign keys to schema.rb.
We can use yum
or dnf
to install rubygem-foreigner
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-foreigner.
Install rubygem-foreigner 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-foreigner
using dnf
by running the following command:
sudo dnf -y install rubygem-foreigner
Install rubygem-foreigner 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-foreigner
using yum
by running the following command:
sudo yum -y install rubygem-foreigner
How To Uninstall rubygem-foreigner on Fedora 36
To uninstall only the rubygem-foreigner
package we can use the following command:
sudo dnf remove rubygem-foreigner
rubygem-foreigner Package Contents on Fedora 36
/usr/share/gems/gems/foreigner-1.7.4
/usr/share/gems/gems/foreigner-1.7.4/MIT-LICENSE
/usr/share/gems/gems/foreigner-1.7.4/README.md
/usr/share/gems/gems/foreigner-1.7.4/Rakefile
/usr/share/gems/gems/foreigner-1.7.4/lib
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/adapter.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/foreign_key_definition.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/schema_definitions.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/schema_statements.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/table.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/table_definition.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/mysql2_adapter.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/mysql_adapter.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/noop_adapter.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/postgresql_adapter.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/sql2003.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/helper.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/loader.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/migration
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/migration/command_recorder.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/railtie.rb
/usr/share/gems/gems/foreigner-1.7.4/lib/foreigner/schema_dumper.rb
/usr/share/gems/gems/foreigner-1.7.4/test
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/adapter_test.rb
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/connection_adapters
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/connection_adapters/abstract
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/connection_adapters/abstract/schema_statements_test.rb
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/connection_adapters/abstract/table_definition_test.rb
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/connection_adapters/mysql2_adapter_test.rb
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/connection_adapters/mysql_adapter_test.rb
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/connection_adapters/postgresql_adapter_test.rb
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/connection_adapters/sql2003_test.rb
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/migration
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/migration/command_recorder_test.rb
/usr/share/gems/gems/foreigner-1.7.4/test/foreigner/schema_dumper_test.rb
/usr/share/gems/gems/foreigner-1.7.4/test/helper.rb
/usr/share/gems/specifications/foreigner-1.7.4.gemspec
References
Summary
In this tutorial we learn how to install rubygem-foreigner
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).