| |
@@ -10,84 +10,5 @@
|
| |
|
| |
Finally, because big changes are not always welcome, Modularity has been built in a way it can be basically invisible to the user. The usual installation commands continue to work — so packages with a default stream can be installed the same way as before regardles of them being modularized or not.
|
| |
|
| |
- == Discovering content
|
| |
+ Coninue to the xref:installing-modules.adoc[Installation and Discovery] page to learn about the actual commands.
|
| |
|
| |
- === Listing packages
|
| |
-
|
| |
- Packages available to the system can be discovered by the usual commands such as `dnf search NAME`, `dnf list NAME`, or by using the `dnf repoquery QUERY` command for more complex queries. However, it is important to note that those commands will, apart from traditional packages, only list modular packages coming from a _default_ or an _enabled_ module stream.
|
| |
-
|
| |
- === Listing modules
|
| |
-
|
| |
- To list modules available to your system, and to see what streams are _default_ or have been _enabled_, use the following command:
|
| |
-
|
| |
- $ dnf module list
|
| |
-
|
| |
- == Consuming content
|
| |
-
|
| |
- === Installing packages
|
| |
-
|
| |
- Packages can be installed the usual way by running the `dnf install NAME` command. Any traditional package, or a modular package coming from a _default_ or an _enabled_ module can be installed this way.
|
| |
-
|
| |
- Packages from other module streams can be consumed by either _enabling a module_ stream and then installing individual packages, or by _installing a module_ directly.
|
| |
-
|
| |
- === Enabling modules
|
| |
-
|
| |
- To **enable a module stream** and make its packages available for installation, run the following command:
|
| |
-
|
| |
- $ sudo dnf module enable NAME:STREAM
|
| |
-
|
| |
- For example, to make Node.js 8 packages available for installation, run:
|
| |
-
|
| |
- $ sudo dnf module enable nodejs:8
|
| |
-
|
| |
- Packages from enabled module streams can be then installed by the `dnf install NAME` command.
|
| |
-
|
| |
- === Installing modules
|
| |
-
|
| |
- To install a module, use one of the following commands. Not specifying a _stream_ or a _profile_ causes DNF to choose the _default_. However, not every module has a _default stream_ or _default profile_.
|
| |
-
|
| |
- $ sudo dnf module install NAME
|
| |
- $ sudo dnf module install NAME:STREAM
|
| |
- $ sudo dnf module install NAME/PROFILE
|
| |
- $ sudo dnf module install NAME:STREAM/PROFILE
|
| |
-
|
| |
- For example, to install the Node.js 8 runtime and the client tooling of the default stream of MongoDB, run:
|
| |
-
|
| |
- $ sudo dnf module install nodejs:8
|
| |
- $ sudo dnf module install mongodb/client
|
| |
-
|
| |
- === Switching module streams
|
| |
-
|
| |
- NOTE: Switching streams is a risky operation that might not be always supported in packages, especially downgrades.
|
| |
-
|
| |
- Switching to a different stream than the one that is installed on a system is a two-step process. First, the current stream needs to be reset causing it not to be enabled anymore — this will however keep its packages installed. Second, a new stream needs to be installed.
|
| |
-
|
| |
- $ sudo dnf module reset NAME
|
| |
- $ sudo dnf module install NAME:STREAM
|
| |
-
|
| |
- For example, to switch from Node.js 8 to Node.js 10, run:
|
| |
-
|
| |
- $ sudo dnf module reset nodejs
|
| |
- $ sudo dnf module install nodejs:10
|
| |
-
|
| |
- When switching RPMs that are not in a profile of stream, that is a three step process. First, the current stream needs to be reset. Second, a new stream needs to be enabled. Three, the specified RPMs are synchronized on the new stream.
|
| |
-
|
| |
- $ sudo dnf module reset NAME
|
| |
- $ sudo dnf module enable NAME:STREAM
|
| |
- $ sudo dnf --allowerasing distro-sync [RPM]...
|
| |
-
|
| |
- For example, to switch installed RPMs from Ruby 2.5 to Ruby 2.6, run:
|
| |
-
|
| |
- $ sudo dnf module reset ruby
|
| |
- $ sudo dnf module enable ruby:2.6
|
| |
- $ sudo dnf --allowerasing distro-sync
|
| |
-
|
| |
- To switch specified RPMs rubygem-mysql2 and rubygem-pg from Ruby 2.5 to Ruby 2.6, run:
|
| |
-
|
| |
- $ sudo dnf --allowerasing distro-sync rubygem-mysql2 rubygem-pg
|
| |
-
|
| |
- HINT: `dnf module info NAME:STREAM` Artifacts is helpful to check RPMs in a module.
|
| |
-
|
| |
- == Updating the system
|
| |
-
|
| |
- Updating a system by running the `dnf update` command causes all packages to be upgraded to their latest version provided by their module stream.
|
| |
how about "intro" which will make it less formal (and "quick start" doesn't make sense)