How To Install cmake-filesystem on CentOS 8

cmake-filesystem is Directories used by CMake modules Directories used by CMake modules

Introduction

In this tutorial we learn how to install cmake-filesystem on CentOS 8.

What is cmake-filesystem

This package owns all directories used by CMake modules. cmake-filesystem 3.18.2 11.el8_4 x86_64 44 k cmake-3.18.2-11.el8_4.src.rpm appstream Directories used by CMake modules http BSD and MIT and zlib This package owns all directories used by CMake modules.

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

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

sudo dnf -y install cmake-filesystem

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

sudo yum -y install cmake-filesystem

How To Uninstall cmake-filesystem on CentOS 8

To uninstall only the cmake-filesystem package we can use the following command:

sudo dnf remove cmake-filesystem

cmake-filesystem Package Contents on CentOS 8

/usr/lib/cmake
/usr/share/cmake
/usr/share/cmake/Help
/usr/share/cmake/Help/command
/usr/share/cmake/Help/cpack_gen
/usr/share/cmake/Help/envvar
/usr/share/cmake/Help/generator
/usr/share/cmake/Help/include
/usr/share/cmake/Help/manual
/usr/share/cmake/Help/module
/usr/share/cmake/Help/policy
/usr/share/cmake/Help/prop_cache
/usr/share/cmake/Help/prop_dir
/usr/share/cmake/Help/prop_gbl
/usr/share/cmake/Help/prop_inst
/usr/share/cmake/Help/prop_sf
/usr/share/cmake/Help/prop_test
/usr/share/cmake/Help/prop_tgt
/usr/share/cmake/Help/release
/usr/share/cmake/Help/variable
/usr/share/cmake/Modules
/usr/share/cmake/Modules/AndroidTestUtilities
/usr/share/cmake/Modules/CMakeAddFortranSubdirectory
/usr/share/cmake/Modules/CheckIPOSupported
/usr/share/cmake/Modules/Compiler
/usr/share/cmake/Modules/Compiler/XL-Fortran
/usr/share/cmake/Modules/CompilerId
/usr/share/cmake/Modules/FetchContent
/usr/share/cmake/Modules/FindCUDA
/usr/share/cmake/Modules/FindMPI
/usr/share/cmake/Modules/FindPython
/usr/share/cmake/Modules/FortranCInterface
/usr/share/cmake/Modules/FortranCInterface/Verify
/usr/share/cmake/Modules/IntelVSImplicitPath
/usr/share/cmake/Modules/Internal
/usr/share/cmake/Modules/Internal/CPack
/usr/share/cmake/Modules/Platform
/usr/share/cmake/Modules/Platform/AIX
/usr/share/cmake/Modules/Platform/Android
/usr/share/cmake/Modules/UseJava
/usr/share/cmake/Modules/UseSWIG
/usr/share/cmake/Templates
/usr/share/cmake/Templates/MSBuild
/usr/share/cmake/Templates/MSBuild/FlagTables
/usr/share/cmake/Templates/Windows
/usr/share/cmake/include
/usr/lib64/cmake
/usr/share/cmake
/usr/share/cmake/Help
/usr/share/cmake/Help/command
/usr/share/cmake/Help/cpack_gen
/usr/share/cmake/Help/envvar
/usr/share/cmake/Help/generator
/usr/share/cmake/Help/include
/usr/share/cmake/Help/manual
/usr/share/cmake/Help/module
/usr/share/cmake/Help/policy
/usr/share/cmake/Help/prop_cache
/usr/share/cmake/Help/prop_dir
/usr/share/cmake/Help/prop_gbl
/usr/share/cmake/Help/prop_inst
/usr/share/cmake/Help/prop_sf
/usr/share/cmake/Help/prop_test
/usr/share/cmake/Help/prop_tgt
/usr/share/cmake/Help/release
/usr/share/cmake/Help/variable
/usr/share/cmake/Modules
/usr/share/cmake/Modules/AndroidTestUtilities
/usr/share/cmake/Modules/CMakeAddFortranSubdirectory
/usr/share/cmake/Modules/CheckIPOSupported
/usr/share/cmake/Modules/Compiler
/usr/share/cmake/Modules/Compiler/XL-Fortran
/usr/share/cmake/Modules/CompilerId
/usr/share/cmake/Modules/FetchContent
/usr/share/cmake/Modules/FindCUDA
/usr/share/cmake/Modules/FindMPI
/usr/share/cmake/Modules/FindPython
/usr/share/cmake/Modules/FortranCInterface
/usr/share/cmake/Modules/FortranCInterface/Verify
/usr/share/cmake/Modules/IntelVSImplicitPath
/usr/share/cmake/Modules/Internal
/usr/share/cmake/Modules/Internal/CPack
/usr/share/cmake/Modules/Platform
/usr/share/cmake/Modules/Platform/AIX
/usr/share/cmake/Modules/Platform/Android
/usr/share/cmake/Modules/UseJava
/usr/share/cmake/Modules/UseSWIG
/usr/share/cmake/Templates
/usr/share/cmake/Templates/MSBuild
/usr/share/cmake/Templates/MSBuild/FlagTables
/usr/share/cmake/Templates/Windows
/usr/share/cmake/include

References

Summary

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