Warning, /utilities/ark/doc/index.docbook is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" ?>
0002 <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
0003   <!ENTITY % addindex "IGNORE">
0004   <!ENTITY % English "INCLUDE" > <!-- change language only here -->
0005   <!ENTITY Ragnar.Thomsen '<personname><firstname>Ragnar</firstname><surname>Thomsen</surname></personname>'>
0006   <!ENTITY Ragnar.Thomsen.mail '<email>rthomsen6@gmail.com</email>'>
0007   <!ENTITY Henrique.Pinto '<personname><firstname>Henrique</firstname><surname>Pinto</surname></personname>'>
0008   <!ENTITY Henrique.Pinto.mail '<email>henrique.pinto@kdemail.net</email>'>
0009 ]>
0010 
0011 <book id="ark" lang="&language;">
0012 
0013 <bookinfo>
0014 <title>The &ark; Handbook</title>
0015 
0016 <authorgroup>
0017 <author>
0018 &Matt.Johnston; &Matt.Johnston.mail;
0019 </author>
0020 <author>
0021 &Henrique.Pinto; &Henrique.Pinto.mail;
0022 </author>
0023 <author>
0024 &Ragnar.Thomsen; &Ragnar.Thomsen.mail;
0025 </author>
0026 
0027 <!-- TRANS:ROLES_OF_TRANSLATORS -->
0028 </authorgroup>
0029 
0030 <copyright>
0031 <year>2000</year>
0032 <holder>&Matt.Johnston;</holder>
0033 </copyright>
0034 
0035 <copyright>
0036 <year>2004</year>
0037 <holder>&Henrique.Pinto;</holder>
0038 </copyright>
0039 
0040 <copyright>
0041 <year>2015, 2016</year>
0042 <holder>&Ragnar.Thomsen;</holder>
0043 </copyright>
0044 
0045 <legalnotice>&FDLNotice;</legalnotice>
0046 
0047 <date>2016-09-10</date>
0048 <releaseinfo>Applications 16.12</releaseinfo>
0049 
0050 <abstract>
0051 <para>&ark; is an archive manager by &kde;.</para>
0052 </abstract>
0053 
0054 <keywordset>
0055 <keyword>KDE</keyword>
0056 <keyword>gzip</keyword>
0057 <keyword>gunzip</keyword>
0058 <keyword>tar</keyword>
0059 <keyword>archive</keyword>
0060 <keyword>zip</keyword>
0061 <keyword>compression</keyword>
0062 <keyword>7z</keyword>
0063 <keyword>kdeutils</keyword>
0064 <keyword>ark</keyword>
0065 </keywordset>
0066 </bookinfo>
0067 
0068 <chapter id="introduction">
0069 <title>Introduction</title>
0070 <para>&ark; is a program for viewing, extracting, creating and modifying
0071 archives.
0072 &ark; can handle various archive formats such as
0073 <command>tar</command>, <command>gzip</command>,
0074 <command>bzip2</command>, <command>zip</command>, <command>rar</command>, 
0075 <command>7zip</command>, <command>xz</command>, <command>rpm</command>, 
0076 <command>cab</command>, <command>deb</command>, <command>xar</command>
0077 and <command>AppImage</command> (support for certain archive formats depends on
0078 the appropriate command-line programs being installed).</para>
0079 
0080 <mediaobject>
0081 <imageobject>
0082 <imagedata fileref="ark-mainwindow.png" format="PNG"/>
0083 </imageobject>
0084 <textobject>
0085 <phrase>&ark;'s main window</phrase>
0086 </textobject>
0087 </mediaobject>
0088 
0089 <para>In order to successfully use &ark;, you need KDE Frameworks 5. The library libarchive
0090 version 3.1 or above is needed to handle most archive types, including tar,
0091 compressed tar, rpm, deb and cab archives. To handle other file formats, you
0092 need the appropriate command line programs, such as <command>zipinfo</command>,
0093 <command>zip</command>, <command>unzip</command>, <command>rar</command>,
0094 <command>unrar</command>, <command>7z</command>, <command>lsar</command>,
0095 <command>unar</command> and <command>lrzip</command>.</para>
0096 
0097 </chapter>
0098 
0099 <chapter id="using-ark">
0100 <title>Using &ark;</title>
0101 
0102 <sect1 id="ark-open">
0103 <title>Opening Archives</title>
0104 
0105 <para>To open an archive in &ark;, choose
0106 <guimenuitem>Open...</guimenuitem> (<keycombo
0107 action="simul">&Ctrl;<keycap>O</keycap></keycombo>) from the <guimenu>Archive</guimenu>
0108 menu. You can also open archive files by dragging and dropping from
0109 &dolphin;. Archive files should be associated with &ark;, so you can
0110 also <mousebutton>right</mousebutton> click a file in &dolphin; and
0111 select <guimenuitem>Open with &ark;</guimenuitem> to open it or select an extract action for this file.</para>
0112 
0113 <para>If you have enabled the information panel in the <guimenu>Settings</guimenu> menu 
0114 additional information about the selected folders or files in the archive is displayed.</para>
0115 
0116 <sect2 id="ark-archive-operations">
0117 <title>Archive Operations</title>
0118 
0119 <para>Various operations can be performed for an opened archive by using the <guimenu>Archive</guimenu> menu.
0120 For example, you can save the archive with a different name using <guimenuitem>Save As...</guimenuitem>.
0121 Archive properties such as type, size and MD5 hash can be viewed using the
0122 <guimenuitem>Properties</guimenuitem> item.</para>
0123 
0124 <para>&ark; has the ability to test archives for integrity. This functionality is currently available for
0125 <command>zip</command>, <command>rar</command> and <command>7z</command> archives.
0126 The test action can be found in the <guimenu>Archive</guimenu> menu.</para>
0127 
0128 </sect2>
0129 
0130 <sect2 id="ark-archive-comments">
0131 <title>Archive Comments</title>
0132 
0133 <para>&ark; can handle comments embedded in <literal role="extension">zip</literal> and <literal role="extension">rar</literal> archives.</para>
0134 
0135 <para>Comments embedded in <literal role="extension">zip</literal> archives are automatically displayed.</para>
0136 
0137 <para>Using <literal role="extension">rar</literal> archives you can modify a comment with the actions 
0138 <guimenuitem>Add Comment</guimenuitem> or <guimenuitem>Edit comment</guimenuitem> 
0139 (<keycombo action="simul">&Alt;<keycap>C</keycap></keycombo>) from the <guimenu>Archive</guimenu> menu.
0140 </para>
0141 
0142 <mediaobject>
0143 <imageobject>
0144 <imagedata fileref="ark-comment.png" format="PNG"/>
0145 </imageobject>
0146 <textobject>
0147 <phrase>Editing a comment</phrase>
0148 </textobject>
0149 </mediaobject>
0150 
0151 <note><para>The comment menu item is enabled only for <literal role="extension">rar</literal> archives.
0152 </para></note>
0153 
0154 <para>To remove a comment from a <literal role="extension">rar</literal> archive delete the text in 
0155 the comment window.</para>
0156 
0157 </sect2>
0158 
0159 </sect1>
0160 
0161 <sect1 id="ark-work-files">
0162 <title>Working with Files</title>
0163 
0164 <para>Once an archive has been opened, you can perform various
0165 operations on the files inside the archive.  By
0166 selecting a file and using the <guimenu>File</guimenu>
0167 menu, you can choose different operations to perform:</para>
0168 
0169 <itemizedlist>
0170 <listitem>
0171 <para><guimenuitem>Preview</guimenuitem> (<keycombo
0172 action="simul">&Ctrl;<keycap>P</keycap></keycombo>) will open the file with &ark;'s internal viewer.
0173 This is a fast read-only viewer, but does not support all file types.</para>
0174 </listitem>
0175 <listitem>
0176 <para><guimenuitem>Open</guimenuitem> will open the file in the associated application for that
0177 file type.</para>
0178 </listitem>
0179 <listitem>
0180 <para><guimenuitem>Open With...</guimenuitem> allows you to choose which application to open
0181 the file with.</para>
0182 </listitem>
0183 <listitem>
0184 <para><guimenuitem>Rename</guimenuitem> (<keycombo action="simul">&Alt;<keycap>F2</keycap></keycombo>)
0185 This action allows to change names of both files and folders. As in the Dolphin file manager,
0186 this action can be called via a shortcut and renaming is done via inline editing.
0187 There are also filename checks provided, which prevent usage of invalid characters such as
0188 <userinput>/</userinput>, <userinput>.</userinput> and <userinput>..</userinput> in filenames.</para>
0189 </listitem>
0190 <listitem>
0191 <para><guimenuitem>Delete</guimenuitem> (<keycap>Del</keycap>) will remove the currently
0192 selected file(s) from the archive. Note that this action is undoable.</para>
0193 </listitem>
0194 <listitem>
0195 <para><guimenuitem>Extract</guimenuitem> (<keycombo
0196 action="simul">&Ctrl;<keycap>E</keycap></keycombo>) opens a submenu with previously accessed
0197 folders, and you can choose to quickly extract into any of these or browse to a non-listed
0198 folder. See the next section for more details on extraction.</para>
0199 </listitem>
0200 <listitem>
0201 <para><guimenuitem>Cut</guimenuitem> (<keycombo action="simul">&Ctrl;<keycap>X</keycap></keycombo>) /
0202 <guimenuitem>Copy</guimenuitem> (<keycombo action="simul">&Ctrl;<keycap>C</keycap></keycombo>) /
0203 <guimenuitem>Paste</guimenuitem> (<keycombo action="simul">&Ctrl;<keycap>V</keycap></keycombo>):
0204 As in typical file managers, moving, pasting and copying are provided. 
0205 Users can move or copy files from different folders (which are expandable in the tree view)
0206 and paste them to the same destination at once. A folder can be copied into itself, but can not be moved.
0207 There are also checks for conflicting filenames: You won't be able to copy or move files
0208 into a folder that has entries with the same names - that could lead to data loss.</para>
0209 </listitem>
0210 <listitem>
0211 <para><guimenuitem>Add Files</guimenuitem> (<keycombo action="simul">&Alt;<keycap>A</keycap></keycombo>)
0212 This action can be used to add files at any location within the archive.
0213 If you select a folder and use this action, files will be added to the selected folder.
0214 Otherwise, the new files will be added to the root of the archive.
0215 </para>
0216 </listitem>
0217 </itemizedlist>
0218 
0219 <sect2 id="ark-editing-files">
0220 <title>Editing Files</title>
0221 <para>If you edit and save a file which you opened using <guimenuitem>Open</guimenuitem> or
0222 <guimenuitem>Open With...</guimenuitem>, Ark will ask you if you want to update the file in
0223 the archive. If you answer Yes, the archive will be updated with the saved file.</para>
0224 
0225 </sect2>
0226 </sect1>
0227 
0228 <sect1 id="ark-extract">
0229 <title>Extracting Files</title>
0230 
0231 <para>Once an archive has been opened in &ark;, it can be extracted. This can be done by selecting
0232 <guisubmenu>Extract</guisubmenu> from the <guimenu>File</guimenu> menu. This opens a submenu with
0233 previously accessed folders, and you can choose to quickly extract into any of these. Alternatively,
0234 select the submenu item <guisubmenu>Extract To...</guisubmenu> to open the <guilabel>Extract</guilabel>
0235 dialog, where you can set various options that affect the extraction. See below for information on
0236 the available options in the Extract dialog.</para>
0237 
0238 <para>You can also use the <guibutton>Extract</guibutton> button in the toolbar to access the same
0239 extraction options.</para>
0240 
0241 <para>To extract the entire archive, you can select <guisubmenu>Extract All</guisubmenu> from the
0242 <guimenu>Archive</guimenu> menu. This action unconditionally extracts all files in the archive.</para>
0243 
0244 <para>It is possible to extract files and folders by simply dragging them with the mouse to a
0245 folder in &dolphin;.</para>
0246 
0247 <para>Note: Extracting files from an archive does not change the archive and its contents.</para>
0248 
0249 <sect2 id="ark-extract-dialog">
0250 <title>The Extract dialog</title>
0251 
0252 <para>The <guilabel>Extract</guilabel> dialog allows you to choose where the files will be extracted
0253 to. The default location is the folder the archive is in. The dialog can also be opened by pressing
0254 <keycombo action="simul">&Ctrl;<keycap>E</keycap></keycombo>.</para>
0255 
0256 <mediaobject>
0257 <imageobject>
0258 <imagedata fileref="extract-dialog.png" format="PNG"/>
0259 </imageobject>
0260 <textobject>
0261 <phrase>&ark;'s Extract dialog</phrase>
0262 </textobject>
0263 </mediaobject>
0264 
0265 <para>You can specify to extract the files into a subfolder. The default name of this
0266 subfolder is the archive name without the filename extension, but you can edit it to your needs.
0267 If you want to preserve paths when extracting, select the
0268 <guilabel>Preserve paths when extracting</guilabel> option. You may also choose to open the
0269 destination folder in &dolphin; or close &ark; once the extraction is complete.</para>
0270 
0271 <para>If one or more files in the archive list are highlighted, you can
0272 also select which files to extract:</para>
0273 <itemizedlist>
0274 <listitem>
0275 <para><guilabel>Selected files only</guilabel> extracts only the files
0276 which have been selected.</para>
0277 </listitem>
0278 <listitem>
0279 <para><guilabel>All files</guilabel> extracts the entire contents of the
0280 archive.</para>
0281 </listitem>
0282 </itemizedlist>
0283 
0284 </sect2>
0285 </sect1>
0286 
0287 <sect1 id="ark-create">
0288 <title>Creating Archives and Adding Files</title>
0289 
0290 <para>To create a new archive in &ark;, choose
0291 <guimenuitem>New</guimenuitem> (<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>)
0292 from the <guimenu>Archive</guimenu> menu.</para>
0293 
0294 <mediaobject>
0295 <imageobject>
0296 <imagedata fileref="create-archive.png" format="PNG"/>
0297 </imageobject>
0298 <textobject>
0299 <phrase>Create an archive</phrase>
0300 </textobject>
0301 </mediaobject>
0302 
0303 <para>You can then type the name of the archive, with the appropriate
0304 extension (<literal role="extension">tar.gz</literal>, <literal
0305 role="extension">zip</literal>, <literal role="extension">7z</literal>,
0306 &etc;) or select a supported format in the <guilabel>Filter</guilabel> combo box
0307 and check the <guilabel>Automatically add <replaceable>filename extension</replaceable></guilabel> option.</para>
0308 
0309 <para>To add files or folders to the new archive, choose <guimenuitem>Add
0310 Files...</guimenuitem> from the <guimenu>Archive</guimenu> menu.</para>
0311 
0312 <para>An alternative way to add files to an archive is to drag one or more files
0313 from e.g. &dolphin; into the main &ark; window, and it will
0314 be added to the current archive. Note that files added in this way will always be added
0315 to the root directory of the archive.</para>
0316 
0317 <para>Additional options are presented in collapsible groups at the bottom of the dialog.
0318 </para>
0319 
0320 <sect2 id="ark-compression">
0321 <title>Compression</title>
0322 <para>A higher value generates smaller archives, but results in longer compression and decompression times.
0323 The default compression level proposed by &ark; is usually a good compromise between size and (de)compression speed.
0324 For most formats the minimum compression level is equivalent to just storing the files, &ie; applying no compression.
0325 </para>
0326 <para>For <literal role="extension">rar</literal>, <literal role="extension">7z</literal> and <literal role="extension">zip</literal>
0327 archives you can select between different compression methods.
0328 </para>
0329 <para>Note that using compression methods other than the pre-selected defaults may limit compatibility with file archivers.
0330 For example, opening <literal role="extension">zip</literal> archives with compression methods other than <quote>Deflate</quote>
0331 requires newer archiving software.</para>
0332 </sect2>
0333 
0334 <sect2 id="ark-password-protection">
0335 <title>Password Protection</title>
0336 <para>If you create a <literal role="extension">zip</literal>, <literal
0337 role="extension">rar</literal>, <literal role="extension">7zip</literal> and
0338 <literal role="extension">jar</literal> archive you can protect it with a password.
0339 Currently, only the <literal role="extension">zip</literal> format supports multiple
0340 encryption methods. For other formats that support only one encryption
0341 method, the method is shown in the drop down box.</para>
0342 <para>Other encryption methods than the default <guilabel>ZipCrypto</guilabel> might
0343 not be supported by all file archivers.</para>
0344 
0345 <mediaobject>
0346 <imageobject>
0347 <imagedata fileref="create-protected-archive.png" format="PNG"/>
0348 </imageobject>
0349 <textobject>
0350 <phrase>Create a password protected archive</phrase>
0351 </textobject>
0352 </mediaobject>
0353 
0354 <para>Choose whether to require the password before showing the list of files.
0355 This is called header encryption and is available only with the
0356 <literal role="extension">rar</literal> and <literal role="extension">7zip</literal>
0357 formats. Header encryption is enabled by default (when available), in order to offer
0358 the maximum protection for novice users.</para>
0359 </sect2>
0360 
0361 <sect2 id="ark-multi-volume">
0362 <title>Multi-volume Archive</title>
0363 <para>With the <literal role="extension">zip</literal>, <literal role="extension">rar</literal>
0364 and <literal role="extension">7z</literal> formats you can create multi-volume archives, also
0365 known as multi-part or split archives.</para>
0366 <para>A multi-volume archive is one big compressed archive split into several files. This feature
0367 is useful if the maximum file size is limited, &eg; by the capacity of a storage medium
0368 or the maximal size of an email with attachments.</para>
0369 <para>To create a multi-volume archive, check the <guilabel>Create multi-volume archive</guilabel>
0370 checkbox and set a maximum <guilabel>Volume size</guilabel> in the dialog. Then add all files to
0371 the archive and &ark; will automatically generate the required number of archive volumes.
0372 Depending on the selected format the files have an extension with consecutively numbering
0373 scheme &eg; <filename>xxx.7z.001</filename>, <filename>xxx.7z.002</filename> or
0374 <filename>xxx.zip.001</filename>, <filename>xxx.zip.002</filename> or <filename>xxx.part1.rar</filename>,
0375 <filename>xxx.part2.rar</filename> &etc;.</para>
0376 <para>To extract a multi-volume archive, put all archive files into one folder and open the file
0377 with the lowest extension number in &ark; and all other parts of the split archive
0378 will be opened automatically.</para>
0379 </sect2>
0380 
0381 </sect1>
0382 
0383 </chapter>
0384 
0385 <chapter id="ark-in_filemanager">
0386 <title>Using &ark; in the File Manager</title>
0387 
0388 <para>Clicking with the &RMB; on an archive in a file manager like &dolphin;
0389 displays a context menu with an item <guimenuitem>Extract</guimenuitem>.
0390 The menu has these additional items to extract an archive using &ark;:
0391 </para>
0392 
0393 <itemizedlist>
0394 <listitem>
0395 <para><guimenuitem>Extract here</guimenuitem> creates a 
0396 subfolder in the folder with the archive and extracts the folders and files into it.</para>
0397 </listitem>
0398 <listitem>
0399 <para><guimenuitem>Extract here and delete archive</guimenuitem> creates a 
0400 subfolder in the folder with the archive, extracts the folders and files into it and deletes the archive.</para>
0401 </listitem>
0402 <listitem>
0403 <para><guimenuitem>Extract to…</guimenuitem> opens the Extract dialog where you can choose the destination folder and various extraction options.</para>
0404 </listitem>
0405 </itemizedlist>
0406 
0407 <para>
0408 &dolphin;'s context menu for a selection of files and/or folders displays these actions in the
0409 <guimenu>Compress</guimenu> submenu:
0410 </para>
0411 
0412 <itemizedlist>
0413 <listitem>
0414 <para><guimenuitem>Here as "Archive.tar.gz"</guimenuitem> and <guimenuitem>Here as "Archive.zip"</guimenuitem> creates these archive types in the current folder.</para>
0415 </listitem>
0416 <listitem>
0417 <para><guimenuitem>Compress to...</guimenuitem> opens a dialog where you can select folder, name and archive type.</para>
0418 </listitem>
0419 </itemizedlist>
0420 
0421 </chapter>
0422 
0423 <chapter id="batchmode">
0424 <title>Advanced Batch Mode</title>
0425 <para>&ark; has an advanced batch mode to manage archives without launching a graphical user interface.
0426 This mode allows you to extract or create archives and add files to them.</para>
0427 
0428 <para>The batch mode is documented in <ulink url="man:/ark">&ark;'s man page</ulink>.
0429 </para>
0430 </chapter>
0431 
0432 <chapter id="credits">
0433 
0434 <title>Credits and License</title>
0435 
0436 <para>&ark; is Copyright &copy; 1997-2016, The &ark; Development Team.</para>
0437 
0438 <itemizedlist>
0439 <title>Authors:</title>
0440 <listitem><para>Elvis Angelaccio
0441 <email>elvis.angelaccio@kde.org</email></para></listitem>
0442 <listitem><para>Ragnar Thomsen
0443 <email>rthomsen6@gmail.com</email></para></listitem>
0444 <listitem><para>Raphael Kubo da Costa
0445 <email>rakuco@FreeBSD.org</email></para></listitem>
0446 <listitem><para>Harald Hvaal
0447 <email>haraldhv@stud.ntnu.no</email></para></listitem>
0448 <listitem><para>Helio Chissini de Castro
0449 <email>helio@conectiva.com.br</email></para></listitem>
0450 <listitem><para>Georg Robbers
0451 <email>Georg.Robbers@urz.uni-hd.de</email></para></listitem>
0452 <listitem><para>Henrique Pinto
0453 <email>henrique.pinto@kdemail.net</email></para></listitem>
0454 <listitem><para>Roberto Selbach Teixeira
0455 <email>maragato@kde.org</email></para></listitem>
0456 <listitem><para>Robert Palmbos
0457 <email>palm9744@kettering.edu</email></para></listitem>
0458 <listitem><para>Francois-Xavier Duranceau
0459 <email>duranceau@kde.org</email></para></listitem>
0460 <listitem><para>Corel Corporation (author: Emily Ezust)
0461 <email>emilye@corel.com</email></para></listitem>
0462 <listitem><para>Corel Corporation (author: Michael Jarrett)
0463 <email>michaelj@corel.com</email></para></listitem>
0464 </itemizedlist>
0465 
0466 <para>Documentation Copyright &copy; 2000 &Matt.Johnston;
0467 &Matt.Johnston.mail;</para>
0468 
0469 <para>Documentation updated for &kde; 3.3 by &Henrique.Pinto;
0470 &Henrique.Pinto.mail;.</para>
0471 
0472 <para>Documentation updated for KDE Applications 16.04 by &Ragnar.Thomsen;
0473 &Ragnar.Thomsen.mail;.</para>
0474 
0475 <!-- TRANS:CREDIT_FOR_TRANSLATORS -->
0476 &underFDL;
0477 &underGPL;
0478 
0479 </chapter>
0480 
0481 &documentation.index;
0482 </book>
0483 
0484 <!--
0485 Local Variables:
0486 mode: sgml
0487 sgml-minimize-attributes: nil
0488 sgml-general-insert-case: lower
0489 End:
0490 -->
0491