In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install an alternative version of the RPM package in Fedora. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Modularity enables Fedora to provide an alternative version of the RPM package in the repository. Each version of Fedroa can natively build multiple versions of different applications, language runtimes, and tool versions.
Fedora Magazine wrote the modularity of the Fedora 28 server version about a year ago. At that time, it was just an optional repository with additional content, and explicitly only supported the server version. So far, it has changed a lot, and modularity is now a core part of the Fedora distribution. Some software packages have become modules completely. As of this writing, 1119 (2.26%) of Fedora 30's 49464 binary RPM packages come from modules (more information about this number).
Basic knowledge of modularization
Because many packages have different versions that can be unbearable (and difficult to manage), packages are grouped into modules that can represent an application, a language runtime, or any other reasonable group.
Modules usually have multiple streams, which usually represents the major version of the software. It can be used in parallel, but only one stream per module can be installed on a given system.
In order not to overwhelm users with too many choices, each version of Fedora has a set of defaults, so you only need to make decisions when needed.
* * to simplify installation, you can use predefined profile to install modules selectively according to the use case. For example, a database module can be installed as a client, server or at the same time.
Practical use of modularization
When you install the RPM package on a Fedora system, it is likely to come from a module stream. One of the reasons you may not have noticed is that one of the core principles of modularity is to remain invisible until you explore.
Let's compare the following two situations. First, install the popular i3 tiled window manager, and then install the simplified dwm window manager:
$sudo dnf install i3...Done!
As expected, the above command installs the i3 package and its dependencies on the system. Nothing else happened here. But what happens to the other one?
$sudo dnf install dwm...Enabling module streams: dwm 6.1...Done!
It feels the same, but something happened backstage. It enables the default dwm module stream (6. 1) and installs the dwm package in the module.
To remain transparent, there is a message in the output that the module is automatically enabled. But beyond that, users do not need to know anything about modularization in order to use their systems in the way they have always done.
But what if they use a modular approach? Let's see how to install different versions of dwm.
Use the following command to view the available module flows:
$sudo dnf module list...dwm latest. Dwm 6.0. dwm 6.1[ d]. Dwm 6.2.Hint: [d] efault, [e] nabled, [x] disabled, [I] nstalled
The output shows that the dwm module has four streams, with 6.1 as the default.
To install different versions of the dwm package, for example, install the 6.2stream. Enable it, and then install the package using the following two commands:
$sudo dnf module enable dwm:6.2...Enabling module streams: dwm 6.2.. Donebirds $sudo dnf install dwm...Done!
*, let's take a look at the configuration. Take PostgreSQL as an example.
$sudo dnf module list...postgresql 9.6 client, server... postgresql 10 client, server... postgresql 11 client, server.
To install the PostgreSQL 11 server, use the following command:
$sudo dnf module install postgresql:11/server
Note that in addition to enabling streaming, we can specify the configuration to install the module with a command.
Multiple versions can be installed immediately. To add a client tool, use the following command:
$sudo dnf module install postgresql:11/client
There are many other modules with multiple streams to choose from. At the time of this writing, there are 83 module streams in Fedora 30. Includes two versions of MariaDB, three versions of Node.js, two versions of Ruby, and so on.
This is the end of the article on "how to install an alternative version of the RPM package in Fedora". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.