How To Install tar on Fedora 36
Introduction
In this tutorial we learn how to install tar
on Fedora 36.
What is tar
The GNU tar program saves many files together in one archive and can restore individual files (or all of the files) from that archive. Tar can also be used to add supplemental files to an archive and to update or list files in the archive. Tar includes multivolume support, automatic archive compression/decompression, the ability to perform remote archives, and the ability to perform incremental and full backups. If you want to use tar for remote backups, you also need to install the rmt package on the remote box.
We can use yum
or dnf
to install tar
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install tar.
Install tar 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 tar
using dnf
by running the following command:
sudo dnf -y install tar
Install tar 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 tar
using yum
by running the following command:
sudo yum -y install tar
How To Uninstall tar on Fedora 36
To uninstall only the tar
package we can use the following command:
sudo dnf remove tar
tar Package Contents on Fedora 36
/usr/bin/gtar
/usr/bin/tar
/usr/lib/.build-id
/usr/lib/.build-id/30
/usr/lib/.build-id/30/8d144b1394f05a9c828706ed143808c2f56c5b
/usr/share/doc/tar
/usr/share/doc/tar/AUTHORS
/usr/share/doc/tar/ChangeLog
/usr/share/doc/tar/NEWS
/usr/share/doc/tar/README
/usr/share/doc/tar/THANKS
/usr/share/info/tar.info-1.gz
/usr/share/info/tar.info-2.gz
/usr/share/info/tar.info.gz
/usr/share/licenses/tar
/usr/share/licenses/tar/COPYING
/usr/share/locale/bg/LC_MESSAGES/tar.mo
/usr/share/locale/ca/LC_MESSAGES/tar.mo
/usr/share/locale/cs/LC_MESSAGES/tar.mo
/usr/share/locale/da/LC_MESSAGES/tar.mo
/usr/share/locale/de/LC_MESSAGES/tar.mo
/usr/share/locale/el/LC_MESSAGES/tar.mo
/usr/share/locale/eo/LC_MESSAGES/tar.mo
/usr/share/locale/es/LC_MESSAGES/tar.mo
/usr/share/locale/et/LC_MESSAGES/tar.mo
/usr/share/locale/eu/LC_MESSAGES/tar.mo
/usr/share/locale/fi/LC_MESSAGES/tar.mo
/usr/share/locale/fr/LC_MESSAGES/tar.mo
/usr/share/locale/ga/LC_MESSAGES/tar.mo
/usr/share/locale/gl/LC_MESSAGES/tar.mo
/usr/share/locale/hr/LC_MESSAGES/tar.mo
/usr/share/locale/hu/LC_MESSAGES/tar.mo
/usr/share/locale/id/LC_MESSAGES/tar.mo
/usr/share/locale/it/LC_MESSAGES/tar.mo
/usr/share/locale/ja/LC_MESSAGES/tar.mo
/usr/share/locale/ko/LC_MESSAGES/tar.mo
/usr/share/locale/ky/LC_MESSAGES/tar.mo
/usr/share/locale/ms/LC_MESSAGES/tar.mo
/usr/share/locale/nb/LC_MESSAGES/tar.mo
/usr/share/locale/nl/LC_MESSAGES/tar.mo
/usr/share/locale/pl/LC_MESSAGES/tar.mo
/usr/share/locale/pt/LC_MESSAGES/tar.mo
/usr/share/locale/pt_BR/LC_MESSAGES/tar.mo
/usr/share/locale/ro/LC_MESSAGES/tar.mo
/usr/share/locale/ru/LC_MESSAGES/tar.mo
/usr/share/locale/sk/LC_MESSAGES/tar.mo
/usr/share/locale/sl/LC_MESSAGES/tar.mo
/usr/share/locale/sr/LC_MESSAGES/tar.mo
/usr/share/locale/sv/LC_MESSAGES/tar.mo
/usr/share/locale/tr/LC_MESSAGES/tar.mo
/usr/share/locale/uk/LC_MESSAGES/tar.mo
/usr/share/locale/vi/LC_MESSAGES/tar.mo
/usr/share/locale/zh_CN/LC_MESSAGES/tar.mo
/usr/share/locale/zh_TW/LC_MESSAGES/tar.mo
/usr/share/man/man1/gtar.1.gz
/usr/share/man/man1/tar.1.gz
References
Summary
In this tutorial we learn how to install tar
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).