How To Install libxdg-basedir on Fedora 36

In this tutorial we learn how to install libxdg-basedir in Fedora 36. libxdg-basedir is Implementation of the XDG Base Directory Specifications

Introduction

In this tutorial we learn how to install libxdg-basedir on Fedora 36.

What is libxdg-basedir

The XDG Base Directory Specification defines where should user files be looked for by defining one or more base directories relative in with they should be located. This library implements functions to list the directories according to the specification and provides a few higher-level functions.

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

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

sudo dnf -y install libxdg-basedir

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

sudo yum -y install libxdg-basedir

How To Uninstall libxdg-basedir on Fedora 36

To uninstall only the libxdg-basedir package we can use the following command:

sudo dnf remove libxdg-basedir

libxdg-basedir Package Contents on Fedora 36

---
title: "How To Install libxdg-basedir on Fedora 36"
linkTitle: "libxdg-basedir"
type: "docs"
description: "In this tutorial we learn how to install libxdg-basedir in Fedora 36. libxdg-basedir is Implementation of the XDG Base Directory Specifications"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/libxdg-basedir-featured.png
---

## Introduction

In this tutorial we learn how to install `libxdg-basedir` on Fedora 36.

### What is `libxdg-basedir`

> The XDG Base Directory Specification defines where should user files be looked for by defining one or more base directories relative in with they should be located.  This library implements functions to list the directories according to the specification and provides a few higher-level functions.  

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

## Install libxdg-basedir on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

After updating yum database, We can install libxdg-basedir using dnf by running the following command:

sudo dnf -y install libxdg-basedir

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

sudo yum -y install libxdg-basedir

How To Uninstall libxdg-basedir on Fedora 36

To uninstall only the libxdg-basedir package we can use the following command:

sudo dnf remove libxdg-basedir

libxdg-basedir Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/dc4517dbdc9955e71715e9e68ecbf1c45676df
/usr/lib64/libxdg-basedir.so.1
/usr/lib64/libxdg-basedir.so.1.2.0

References

Summary

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

/usr/lib/.build-id /usr/lib/.build-id/fd /usr/lib/.build-id/fd/178967a6ce14d3b51883569c9d1eb6df493b1e /usr/lib/libxdg-basedir.so.1 /usr/lib/libxdg-basedir.so.1.2.0


## References

* [libxdg-basedir website](https://github.com/devnev/libxdg-basedir)

## Summary

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