Installing applications and development tools via AppStream
From the previous recipe, we’re familiar with how to search for and list applications in AppStreams; let’s now dive into installing applications and development tools via AppStream.
How to do it…
Building from the last recipe, in which we examined nodejs
, let’s go ahead and install it. There’s more than one way to do this. You can enable the module and then use the standard dnf install [package(s)]
command to install the packages:
# dnf module enable nodejs # dnf install nodejs npm
You can also use the standard dnf
commands without specifying modules and the default module will get enabled as part of the transaction:
# dnf install nodejs npm
Or, the preferred way is to tap directly into the new set of dnf module
commands and simply run dnf module install [
module name(s)]
:
# dnf module install nodejs
The output is shown in the following screenshot: