How To Install librepo on Fedora 34
Introduction
In this tutorial we learn how to install librepo
on Fedora 34.
What is librepo
A library providing C and Python (libcURL like) API to downloading repository metadata. librepo 1.14.1 1.fc34 i686 101 k librepo-1.14.1-1.fc34.src.rpm updates Repodata downloading library https LGPLv2+ A library providing C and Python (libcURL like) API to downloading repository metadata.
We can use yum
or dnf
to install librepo
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install librepo.
Install librepo on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install librepo
using dnf
by running the following command:
sudo dnf -y install librepo
Install librepo on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install librepo
using yum
by running the following command:
sudo yum -y install librepo
How To Uninstall librepo on Fedora 34
To uninstall only the librepo
package we can use the following command:
sudo dnf remove librepo
librepo Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/714fc161b8c0e9e672019f6e81547198523c6a
/usr/lib64/librepo.so.0
/usr/share/doc/librepo
/usr/share/doc/librepo/README.md
/usr/share/licenses/librepo
/usr/share/licenses/librepo/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/50
/usr/lib/.build-id/50/e478c30d5d2baa66de0ad4cfc703b246fa30e4
/usr/lib/librepo.so.0
/usr/share/doc/librepo
/usr/share/doc/librepo/README.md
/usr/share/licenses/librepo
/usr/share/licenses/librepo/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/5dcc8fa7403a88c0dfe841b7e4e5cc7cd6d597
/usr/lib64/librepo.so.0
/usr/share/doc/librepo
/usr/share/doc/librepo/README.md
/usr/share/licenses/librepo
/usr/share/licenses/librepo/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/32185112eef4182ae259f3174c510dea2e55d4
/usr/lib/librepo.so.0
/usr/share/doc/librepo
/usr/share/doc/librepo/README.md
/usr/share/licenses/librepo
/usr/share/licenses/librepo/COPYING
References
- [librepo website](https://github.com/rpm-software-management/librepo https://github.com/rpm-software-management/librepo)
Summary
In this tutorial we learn how to install librepo
on Fedora 34 using yum and dnf.