How To Install date-devel on Fedora 36
Introduction
In this tutorial we learn how to install date-devel
on Fedora 36.
What is date-devel
This is actually several separate C++11/C++14/C++17 libraries - “date.h” is a header-only library which builds upon
. It adds some new duration types, and new time_point types. It also adds “field” types such as year_month_day which is a struct {year, month, day}. And it provides convenient means to convert between the “field” types and the time_point types. - “tz.h” / “tz.cpp” are a timezone library built on top of the “date.h” library. This timezone library is a complete parser of the IANA timezone database. It provides for an easy way to access all of the data in this database, using the types from “date.h” and . The IANA database also includes data on leap seconds, and this library provides utilities to compute with that information as well. Slightly modified versions of “date.h” and “tz.h” were voted into the C++20 working draft.
We can use yum
or dnf
to install date-devel
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install date-devel.
Install date-devel 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 date-devel
using dnf
by running the following command:
sudo dnf -y install date-devel
Install date-devel 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 date-devel
using yum
by running the following command:
sudo yum -y install date-devel
How To Uninstall date-devel on Fedora 36
To uninstall only the date-devel
package we can use the following command:
sudo dnf remove date-devel
date-devel Package Contents on Fedora 36
/usr/include/date
/usr/include/date/date.h
/usr/include/date/tz.h
/usr/lib64/cmake/date
/usr/lib64/cmake/date/dateConfig.cmake
/usr/lib64/cmake/date/dateConfigVersion.cmake
/usr/lib64/cmake/date/dateTargets-noconfig.cmake
/usr/lib64/cmake/date/dateTargets.cmake
/usr/lib64/libdate-tz.so
/usr/lib64/pkgconfig/date.pc
/usr/share/doc/date-devel
/usr/share/doc/date-devel/README.md
/usr/share/licenses/date-devel
/usr/share/licenses/date-devel/LICENSE.txt
References
Summary
In this tutorial we learn how to install date-devel
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
title: “How To Install date-devel on Fedora 36”
linkTitle: “date-devel”
type: “docs”
description: “In this tutorial we learn how to install date-devel in Fedora 36. date-devel is Date and time library based on the C++11/14/17 header”
date: “2022-08-17”
lastmod: “2022-08-17”
#image: /images/fedora/36/date-devel-featured.png
Introduction
In this tutorial we learn how to install date-devel
on Fedora 36.
What is date-devel
This is actually several separate C++11/C++14/C++17 libraries - “date.h” is a header-only library which builds upon
. It adds some new duration types, and new time_point types. It also adds “field” types such as year_month_day which is a struct {year, month, day}. And it provides convenient means to convert between the “field” types and the time_point types. - “tz.h” / “tz.cpp” are a timezone library built on top of the “date.h” library. This timezone library is a complete parser of the IANA timezone database. It provides for an easy way to access all of the data in this database, using the types from “date.h” and . The IANA database also includes data on leap seconds, and this library provides utilities to compute with that information as well. Slightly modified versions of “date.h” and “tz.h” were voted into the C++20 working draft.
We can use yum
or dnf
to install date-devel
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install date-devel.
Install date-devel 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 date-devel
using dnf
by running the following command:
sudo dnf -y install date-devel
Install date-devel 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 date-devel
using yum
by running the following command:
sudo yum -y install date-devel
How To Uninstall date-devel on Fedora 36
To uninstall only the date-devel
package we can use the following command:
sudo dnf remove date-devel
date-devel Package Contents on Fedora 36
/usr/include/date
/usr/include/date/date.h
/usr/include/date/tz.h
/usr/lib/cmake/date
/usr/lib/cmake/date/dateConfig.cmake
/usr/lib/cmake/date/dateConfigVersion.cmake
/usr/lib/cmake/date/dateTargets-noconfig.cmake
/usr/lib/cmake/date/dateTargets.cmake
/usr/lib/libdate-tz.so
/usr/lib/pkgconfig/date.pc
/usr/share/doc/date-devel
/usr/share/doc/date-devel/README.md
/usr/share/licenses/date-devel
/usr/share/licenses/date-devel/LICENSE.txt
References
Summary
In this tutorial we learn how to install date-devel
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).