How To Install mirrorlist-server on Fedora 36

In this tutorial we learn how to install mirrorlist-server in Fedora 36. mirrorlist-server is Mirrorlist Server

Introduction

In this tutorial we learn how to install mirrorlist-server on Fedora 36.

What is mirrorlist-server

The mirrorlist-server uses the data created by `MirrorManager2 <https the “best” mirror. This implementation of the mirrorlist-server is written in Rust. The original version of the mirrorlist-server was part of the MirrorManager2 repository and it is implemented using Python. While moving from Python2 to Python3 one of the problems was that the data exchange format (Python Pickle) did not support running the MirrorManager2 backend with Python2 and the mirrorlist frontend with Python3. To have a Pickle independent data exchange format protobuf was introduced. The first try to use protobuf in the python mirrorlist implementation required a lot more memory than the Pickle based implementation (3.5GB instead of 1.1GB). That is one of the reasons a new mirrorlist-server implementation was needed. Another reason to rewrite the mirrorlist-server is its architecture. The Python based version requires the Apache HTTP server or something that can run the included wsgi. The wsgi talks over a socket to the actual mirrorlist-server. In Fedora’s MirrorManager2 instance this runs in a container which runs behind HAProxy. This implementation in Rust directly uses a HTTP library to reduce the number of involved components. In addition to being simpler this implementation also requires less memory than the Python version.

We can use yum or dnf to install mirrorlist-server on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mirrorlist-server.

Install mirrorlist-server 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 mirrorlist-server using dnf by running the following command:

sudo dnf -y install mirrorlist-server

Install mirrorlist-server 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 mirrorlist-server using yum by running the following command:

sudo yum -y install mirrorlist-server

How To Uninstall mirrorlist-server on Fedora 36

To uninstall only the mirrorlist-server package we can use the following command:

sudo dnf remove mirrorlist-server

mirrorlist-server Package Contents on Fedora 36

/usr/bin/generate-mirrorlist-cache
/usr/bin/mirrorlist-server
/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/6c99650d77c78566532dbf2ee1dc95c22c314f
/usr/lib/.build-id/97
/usr/lib/.build-id/97/a2a87eef03a6336a38d317bdecf4aa60426367
/usr/share/doc/mirrorlist-server
/usr/share/doc/mirrorlist-server/README.rst
/usr/share/licenses/mirrorlist-server
/usr/share/licenses/mirrorlist-server/LICENSE

References

Summary

In this tutorial we learn how to install mirrorlist-server on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).