How To Install udisks2 on CentOS 8

udisks2 is Disk Manager

Introduction

In this tutorial we learn how to install udisks2 on CentOS 8.

What is udisks2

The Udisks project provides a daemon, tools and libraries to access and manipulate disks, storage devices and technologies.

We can use yum or dnf to install udisks2 on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install udisks2.

Install udisks2 on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install udisks2

Install udisks2 on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install udisks2 using yum by running the following command:

sudo yum -y install udisks2

How To Uninstall udisks2 on CentOS 8

To uninstall only the udisks2 package we can use the following command:

sudo dnf remove udisks2

udisks2 Package Contents on CentOS 8

/etc/udisks2
/etc/udisks2/mount_options.conf.example
/etc/udisks2/udisks2.conf
/usr/bin/udisksctl
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/495333870bbbfee56df3c2acf645f7dc9fc88c
/usr/lib/.build-id/92
/usr/lib/.build-id/92/09aaf4dfdadd7a7c1c9976e24d8326843458cd
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/ea10b74e2c5f632878951b93f27a5c7ba644b1
/usr/lib/systemd/system/udisks2.service
/usr/lib/tmpfiles.d/udisks2.conf
/usr/lib/udev/rules.d/80-udisks2.rules
/usr/lib64/udisks2
/usr/lib64/udisks2/modules
/usr/libexec/udisks2
/usr/libexec/udisks2/udisksd
/usr/sbin/umount.udisks2
/usr/share/bash-completion/completions/udisksctl
/usr/share/dbus-1/system-services/org.freedesktop.UDisks2.service
/usr/share/dbus-1/system.d/org.freedesktop.UDisks2.conf
/usr/share/doc/udisks2
/usr/share/doc/udisks2/AUTHORS
/usr/share/doc/udisks2/HACKING
/usr/share/doc/udisks2/NEWS
/usr/share/doc/udisks2/README.md
/usr/share/licenses/udisks2
/usr/share/licenses/udisks2/COPYING
/usr/share/locale/af/LC_MESSAGES/udisks2.mo
/usr/share/locale/ar/LC_MESSAGES/udisks2.mo
/usr/share/locale/as/LC_MESSAGES/udisks2.mo
/usr/share/locale/az/LC_MESSAGES/udisks2.mo
/usr/share/locale/bg/LC_MESSAGES/udisks2.mo
/usr/share/locale/bn_IN/LC_MESSAGES/udisks2.mo
/usr/share/locale/ca/LC_MESSAGES/udisks2.mo
/usr/share/locale/ca@valencia/LC_MESSAGES/udisks2.mo
/usr/share/locale/cs/LC_MESSAGES/udisks2.mo
/usr/share/locale/cy/LC_MESSAGES/udisks2.mo
/usr/share/locale/da/LC_MESSAGES/udisks2.mo
/usr/share/locale/de/LC_MESSAGES/udisks2.mo
/usr/share/locale/el/LC_MESSAGES/udisks2.mo
/usr/share/locale/en_GB/LC_MESSAGES/udisks2.mo
/usr/share/locale/eo/LC_MESSAGES/udisks2.mo
/usr/share/locale/es/LC_MESSAGES/udisks2.mo
/usr/share/locale/et/LC_MESSAGES/udisks2.mo
/usr/share/locale/eu/LC_MESSAGES/udisks2.mo
/usr/share/locale/fa/LC_MESSAGES/udisks2.mo
/usr/share/locale/fi/LC_MESSAGES/udisks2.mo
/usr/share/locale/fo/LC_MESSAGES/udisks2.mo
/usr/share/locale/fr/LC_MESSAGES/udisks2.mo
/usr/share/locale/fur/LC_MESSAGES/udisks2.mo
/usr/share/locale/ga/LC_MESSAGES/udisks2.mo
/usr/share/locale/gl/LC_MESSAGES/udisks2.mo
/usr/share/locale/gu/LC_MESSAGES/udisks2.mo
/usr/share/locale/he/LC_MESSAGES/udisks2.mo
/usr/share/locale/hi/LC_MESSAGES/udisks2.mo
/usr/share/locale/hr/LC_MESSAGES/udisks2.mo
/usr/share/locale/hu/LC_MESSAGES/udisks2.mo
/usr/share/locale/ia/LC_MESSAGES/udisks2.mo
/usr/share/locale/id/LC_MESSAGES/udisks2.mo
/usr/share/locale/it/LC_MESSAGES/udisks2.mo
/usr/share/locale/ja/LC_MESSAGES/udisks2.mo
/usr/share/locale/ka/LC_MESSAGES/udisks2.mo
/usr/share/locale/kk/LC_MESSAGES/udisks2.mo
/usr/share/locale/kn/LC_MESSAGES/udisks2.mo
/usr/share/locale/ko/LC_MESSAGES/udisks2.mo
/usr/share/locale/lt/LC_MESSAGES/udisks2.mo
/usr/share/locale/lv/LC_MESSAGES/udisks2.mo
/usr/share/locale/ml/LC_MESSAGES/udisks2.mo
/usr/share/locale/mr/LC_MESSAGES/udisks2.mo
/usr/share/locale/ms/LC_MESSAGES/udisks2.mo
/usr/share/locale/nb/LC_MESSAGES/udisks2.mo
/usr/share/locale/nl/LC_MESSAGES/udisks2.mo
/usr/share/locale/nn/LC_MESSAGES/udisks2.mo
/usr/share/locale/oc/LC_MESSAGES/udisks2.mo
/usr/share/locale/or/LC_MESSAGES/udisks2.mo
/usr/share/locale/pa/LC_MESSAGES/udisks2.mo
/usr/share/locale/pl/LC_MESSAGES/udisks2.mo
/usr/share/locale/pt/LC_MESSAGES/udisks2.mo
/usr/share/locale/pt_BR/LC_MESSAGES/udisks2.mo
/usr/share/locale/ro/LC_MESSAGES/udisks2.mo
/usr/share/locale/ru/LC_MESSAGES/udisks2.mo
/usr/share/locale/sk/LC_MESSAGES/udisks2.mo
/usr/share/locale/sl/LC_MESSAGES/udisks2.mo
/usr/share/locale/sq/LC_MESSAGES/udisks2.mo
/usr/share/locale/sr/LC_MESSAGES/udisks2.mo
/usr/share/locale/sr@latin/LC_MESSAGES/udisks2.mo
/usr/share/locale/sv/LC_MESSAGES/udisks2.mo
/usr/share/locale/ta/LC_MESSAGES/udisks2.mo
/usr/share/locale/te/LC_MESSAGES/udisks2.mo
/usr/share/locale/th/LC_MESSAGES/udisks2.mo
/usr/share/locale/tr/LC_MESSAGES/udisks2.mo
/usr/share/locale/uk/LC_MESSAGES/udisks2.mo
/usr/share/locale/vi/LC_MESSAGES/udisks2.mo
/usr/share/locale/wa/LC_MESSAGES/udisks2.mo
/usr/share/locale/zh_CN/LC_MESSAGES/udisks2.mo
/usr/share/locale/zh_HK/LC_MESSAGES/udisks2.mo
/usr/share/locale/zh_TW/LC_MESSAGES/udisks2.mo
/usr/share/man/man1/udisksctl.1.gz
/usr/share/man/man5/udisks2.conf.5.gz
/usr/share/man/man8/udisks.8.gz
/usr/share/man/man8/udisksd.8.gz
/usr/share/man/man8/umount.udisks2.8.gz
/usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy
/var/lib/udisks2

References

Summary

In this tutorial we learn how to install udisks2 on CentOS 8 using yum and dnf.