Ruby 2.7 devel of Fedora 34

,

Hi,

I was able to install ruby 2.7 with

sudo dnf module install ruby:2.7/default

Now I would like to install ruby-devel 2.7. Is there an easy way to do it?

1 Like

Here is a link to the general procedure for researching and installing a specific version of a package;

I suppose there’s a good reason you specifically want ruby 2.7. The normal version for F34 is currently 3.0.2. Unless I’m in need of a specific version, I just
sudo dnf install ruby ruby-devel
and a collection of other libraries I’ll need for the gems I commonly use.

1 Like

Take a look at the docs:

https://docs.fedoraproject.org/en-US/modularity/installing-modules/

Should be a similar command (but I haven’t used modules in ages so I can’t tell you what it should exactly be).

@ankursinha I believe Davide has the procedure down for installing the ruby module, but he’s searching for how to add the specific package ruby-devel. For many modules, he might have chosen a profile that included development packages. The ruby module only comes with a ā€˜default’ profile, so there’s little else to do with the modular installation.
However, good news. @davidel, you can list the contents of the installed module using
dnf module info ruby
With your module install, you get all the packages listed to be part of that module. And you’ll find that ruby-devel is indeed already there.
Cheers!

1 Like

that doc page has a section on installing packages as well:

https://docs.fedoraproject.org/en-US/modularity/installing-modules/#_installing_packages
(the page is just called ā€œinstalling modulesā€)

Thanks everyone! ruby-devel in indeed installed with the ruby 2.7 module.

1 Like