Если вы пытаетесь установить tar в CentOS 8 с помощью команды ниже, возникает ошибка.
1 | Error: unable to find a match: tar |
Причина в отсутствующем или не подключенном репозитории baseos
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | repoquery -i tar Last metadata expiration check: 0:47:58 ago on Fri 25 Feb 2022 10:05:45 AM MSK. Name : tar Epoch : 2 Version : 1.30 Release : 5.el8 Architecture : x86_64 Size : 838 k Source : tar-1.30-5.el8.src.rpm Repository : baseos Summary : A GNU file archiving program URL : http://www.gnu.org/software/tar/ License : GPLv3+ Description : 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. |
Настройки репозитория:
1 2 3 4 5 6 7 8 | cat /etc/yum.repos.d/CentOS-Stream-BaseOS.repo [baseos] name=CentOS Stream $releasever - BaseOS mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=BaseOS&infra=$infra #baseurl=http://mirror.centos.org/$contentdir/$stream/BaseOS/$basearch/os/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial |