mirror of
https://github.com/Poltern/lfs-ru.git
synced 2024-10-19 12:10:32 +03:00
129 lines
4.9 KiB
XML
129 lines
4.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||
<!ENTITY % general-entities SYSTEM "../general.ent">
|
||
%general-entities;
|
||
]>
|
||
|
||
<sect1 id="ch-system-tar" role="wrap">
|
||
<?dbhtml filename="tar.html"?>
|
||
|
||
<sect1info condition="script">
|
||
<productname>tar</productname>
|
||
<productnumber>&tar-version;</productnumber>
|
||
<address>&tar-url;</address>
|
||
</sect1info>
|
||
|
||
<title>Tar-&tar-version;</title>
|
||
|
||
<indexterm zone="ch-system-tar">
|
||
<primary sortas="a-Tar">Tar</primary>
|
||
</indexterm>
|
||
|
||
<sect2 role="package">
|
||
<title/>
|
||
|
||
<para>Пакет Tar предоставляет возможность создавать tar архивы, а также
|
||
производить с ними различные манипуляции. Tar может распаковать
|
||
предварительно созданный архив, добавить или обновить файлы в нём,
|
||
вернуть список файлов в архиве.</para>
|
||
|
||
<segmentedlist>
|
||
<segtitle>&buildtime;</segtitle>
|
||
<segtitle>&diskspace;</segtitle>
|
||
|
||
<seglistitem>
|
||
<seg>&tar-fin-sbu;</seg>
|
||
<seg>&tar-fin-du;</seg>
|
||
</seglistitem>
|
||
</segmentedlist>
|
||
|
||
</sect2>
|
||
|
||
<sect2 role="installation">
|
||
<title>Установка пакета Tar</title>
|
||
|
||
<para>Подготовьте Tar к компиляции:</para>
|
||
|
||
<screen><userinput remap="configure">FORCE_UNSAFE_CONFIGURE=1 \
|
||
./configure --prefix=/usr</userinput></screen>
|
||
|
||
<variablelist>
|
||
<title>Значение параметра configure:</title>
|
||
|
||
<varlistentry>
|
||
<term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term>
|
||
<listitem>
|
||
<para>Этот параметр принудительно запускает тест для
|
||
<function>mknod</function> от имени пользователя
|
||
<systemitem class="username">root</systemitem>. Обычно считается
|
||
опасным запускать этот тест от имени пользователя
|
||
<systemitem class="username">root</systemitem>, но, поскольку он
|
||
выполняется в системе, которая была собрана лишь частично, его
|
||
переопределение допустимо.</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
|
||
<para>Скомпилируйте пакет:</para>
|
||
|
||
<screen><userinput remap="make">make</userinput></screen>
|
||
|
||
<para>Чтобы протестировать пакет, выполните:</para>
|
||
|
||
<screen><userinput remap="test">make check</userinput></screen>
|
||
|
||
<!-- On one system the -j4 improvement is 167s - 46s = 121s (72.46%) -->
|
||
<note><para>Время тестирования Tar можно значительно сократить в системе с
|
||
несколькими ядрами. Для этого добавьте <command>TESTSUITEFLAGS=-j<N></command>
|
||
к строке выше. Например, использование -j4 может сократить время тестирования
|
||
более чем на 70 процентов.</para></note>
|
||
|
||
<para>Известно, что один тест, capabilities: binary store/restore, завершается
|
||
ошибкой при запуске, потому что в LFS отсутствует selinux, он будет пропущен, если
|
||
ядро хоста не поддерживает расширенные атрибуты или метки безопасности файловой
|
||
системы, используемой для сборки LFS.</para>
|
||
|
||
<para>Установите пакет:</para>
|
||
|
||
<screen><userinput remap="install">make install
|
||
make -C doc install-html docdir=/usr/share/doc/tar-&tar-version;</userinput></screen>
|
||
|
||
</sect2>
|
||
|
||
|
||
<sect2 id="contents-tar" role="content">
|
||
<title>Содержимое пакета Tar</title>
|
||
|
||
<segmentedlist>
|
||
<segtitle>Установленные программы</segtitle>
|
||
<segtitle>Созданные каталоги</segtitle>
|
||
|
||
<seglistitem>
|
||
<seg>tar</seg>
|
||
<seg>/usr/share/doc/tar-&tar-version;</seg>
|
||
</seglistitem>
|
||
</segmentedlist>
|
||
|
||
<variablelist>
|
||
<bridgehead renderas="sect3">Краткое описание</bridgehead>
|
||
<?dbfo list-presentation="list"?>
|
||
<?dbhtml list-presentation="table"?>
|
||
|
||
<varlistentry id="tar">
|
||
<term><command>tar</command></term>
|
||
<listitem>
|
||
<para>Создает архивы, извлекает файлы и отображает содержимое архивов,
|
||
также известных как Тарболл.</para>
|
||
<indexterm zone="ch-system-tar tar">
|
||
<primary sortas="b-tar">tar</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
</variablelist>
|
||
|
||
</sect2>
|
||
|
||
</sect1>
|