
Copyright © 2000 Matt Johnston
Copyright © 2004 Henrique Pinto
Copyright © 2015, 2016 Ragnar Thomsen
Ark is an archive manager by KDE.
Table of Contents

Ark is a program for viewing, extracting, creating and modifying archives. Ark can handle various archive formats such as tar, gzip, bzip2, zip, rar, 7zip, xz, rpm, cab, deb, xar and AppImage (support for certain archive formats depends on the appropriate command-line programs being installed).

In order to successfully use Ark, you need KDE Frameworks 5. The library libarchive version 3.1 or above is needed to handle most archive types, including tar, compressed tar, rpm, deb and cab archives. To handle other file formats, you need the appropriate command line programs, such as zipinfo, zip, unzip, rar, unrar, 7z, lsar, unar and lrzip.

To open an archive in Ark, choose (Ctrl+O) from the menu. You can also open archive files by dragging and dropping from Dolphin. Archive files should be associated with Ark, so you can also click a file in Dolphin and select to open it or select an extract action for this file.
If you have enabled the information panel in the menu additional information about the selected folders or files in the archive is displayed.
Various operations can be performed for an opened archive by using the menu. For example, you can save the archive with a different name using . Archive properties such as type, size and MD5 hash can be viewed using the item.
Ark has the ability to test archives for integrity. This functionality is currently available for zip, rar and 7z archives. The test action can be found in the menu.
Ark can handle comments embedded in zip
and rar
archives.
Comments embedded in zip
archives are automatically displayed.
Using rar
archives you can modify a comment with the actions
or
(Alt+C) from the menu.

Note
The comment menu item is enabled only for rar
archives.
To remove a comment from a rar
archive delete the text in
the comment window.

Once an archive has been opened, you can perform various operations on the files inside the archive. By selecting a file and using the menu, you can choose different operations to perform:
(Ctrl+P) will open the file with Ark's internal viewer. This is a fast read-only viewer, but does not support all file types.
will open the file in the associated application for that file type.
allows you to choose which application to open the file with.
(Alt+F2) This action allows to change names of both files and folders. As in the Dolphin file manager, this action can be called via a shortcut and renaming is done via inline editing. There are also filename checks provided, which prevent usage of invalid characters such as
/
,.
and..
in filenames.(Del) will remove the currently selected file(s) from the archive. Note that this action is undoable.
(Ctrl+E) opens a submenu with previously accessed folders, and you can choose to quickly extract into any of these or browse to a non-listed folder. See the next section for more details on extraction.
(Ctrl+X) / (Ctrl+C) / (Ctrl+V): As in typical file managers, moving, pasting and copying are provided. Users can move or copy files from different folders (which are expandable in the tree view) and paste them to the same destination at once. A folder can be copied into itself, but can not be moved. There are also checks for conflicting filenames: You won't be able to copy or move files into a folder that has entries with the same names - that could lead to data loss.
(Alt+A) This action can be used to add files at any location within the archive. If you select a folder and use this action, files will be added to the selected folder. Otherwise, the new files will be added to the root of the archive.

Once an archive has been opened in Ark, it can be extracted. This can be done by selecting from the menu. This opens a submenu with previously accessed folders, and you can choose to quickly extract into any of these. Alternatively, select the submenu item to open the Extract dialog, where you can set various options that affect the extraction. See below for information on the available options in the Extract dialog.
You can also use the button in the toolbar to access the same extraction options.
To extract the entire archive, you can select from the menu. This action unconditionally extracts all files in the archive.
It is possible to extract files and folders by simply dragging them with the mouse to a folder in Dolphin.
Note: Extracting files from an archive does not change the archive and its contents.
The Extract dialog allows you to choose where the files will be extracted to. The default location is the folder the archive is in. The dialog can also be opened by pressing Ctrl+E.

You can specify to extract the files into a subfolder. The default name of this subfolder is the archive name without the filename extension, but you can edit it to your needs. If you want to preserve paths when extracting, select the Preserve paths when extracting option. You may also choose to open the destination folder in Dolphin or close Ark once the extraction is complete.
If one or more files in the archive list are highlighted, you can also select which files to extract:
Selected files only extracts only the files which have been selected.
All files extracts the entire contents of the archive.

To create a new archive in Ark, choose (Ctrl+N) from the menu.

You can then type the name of the archive, with the appropriate
extension (tar.gz
, zip
, 7z
,
etc.) or select a supported format in the Filter combo box
and check the Automatically add filename extension
option.
To add files or folders to the new archive, choose from the menu.
An alternative way to add files to an archive is to drag one or more files from e.g. Dolphin into the main Ark window, and it will be added to the current archive. Note that files added in this way will always be added to the root directory of the archive.
Additional options are presented in collapsible groups at the bottom of the dialog.
A higher value generates smaller archives, but results in longer compression and decompression times. The default compression level proposed by Ark is usually a good compromise between size and (de)compression speed. For most formats the minimum compression level is equivalent to just storing the files, i.e. applying no compression.
For rar
, 7z
and zip
archives you can select between different compression methods.
Note that using compression methods other than the pre-selected defaults may limit compatibility with file archivers.
For example, opening zip
archives with compression methods other than “Deflate”
requires newer archiving software.
If you create a zip
, rar
, 7zip
and
jar
archive you can protect it with a password.
Currently, only the zip
format supports multiple
encryption methods. For other formats that support only one encryption
method, the method is shown in the drop down box.
Other encryption methods than the default ZipCrypto might not be supported by all file archivers.

Choose whether to require the password before showing the list of files.
This is called header encryption and is available only with the
rar
and 7zip
formats. Header encryption is enabled by default (when available), in order to offer
the maximum protection for novice users.
With the zip
, rar
and 7z
formats you can create multi-volume archives, also
known as multi-part or split archives.
A multi-volume archive is one big compressed archive split into several files. This feature is useful if the maximum file size is limited, e.g. by the capacity of a storage medium or the maximal size of an email with attachments.
To create a multi-volume archive, check the Create multi-volume archive
checkbox and set a maximum Volume size in the dialog. Then add all files to
the archive and Ark will automatically generate the required number of archive volumes.
Depending on the selected format the files have an extension with consecutively numbering
scheme e.g. xxx.7z.001
, xxx.7z.002
or
xxx.zip.001
, xxx.zip.002
or xxx.part1.rar
,
xxx.part2.rar
etc..
To extract a multi-volume archive, put all archive files into one folder and open the file with the lowest extension number in Ark and all other parts of the split archive will be opened automatically.

Clicking with the Dolphin displays a context menu with an item . The menu has these additional items to extract an archive using Ark:
mouse button on an archive in a filemanager likecreates a subfolder in the folder with the archive and extracts the folders and files into it.
opens the Extract dialog where you can choose destination folder and various extraction options.
extracts the content of the archive into the same folder.
Dolphin's context menu for a selection of files and/or folders displays these actions in the submenu:
or creates these archive types in the current folder.
opens a dialog where you can select folder, name and archive type.

Ark has an advanced batch mode to manage archives without launching a graphical user interface. This mode allows you to extract or create archives and add files to them.
The batch mode is documented in Ark's man page.

Ark is Copyright (c) 1997-2016, The Ark Development Team.
Authors:
Elvis Angelaccio
(elvis.angelaccio AT kde.org)
Ragnar Thomsen
(rthomsen6 AT gmail.com)
Raphael Kubo da Costa
(rakuco AT FreeBSD.org)
Harald Hvaal
(haraldhv AT stud.ntnu.no)
Helio Chissini de Castro
(helio AT conectiva.com.br)
Georg Robbers
(Georg.Robbers AT urz.uni-hd.de)
Henrique Pinto
(henrique.pinto AT kdemail.net)
Roberto Selbach Teixeira
(maragato AT kde.org)
Robert Palmbos
(palm9744 AT kettering.edu)
Francois-Xavier Duranceau
(duranceau AT kde.org)
Corel Corporation (author: Emily Ezust)
(emilye AT corel.com)
Corel Corporation (author: Michael Jarrett)
(michaelj AT corel.com)
Documentation Copyright (c) 2000 Matt Johnston
(mattj AT flashmail.com)
Documentation updated for KDE 3.3 by Henrique Pinto
(henrique.pinto AT kdemail.net)
.
Documentation updated for KDE Applications 16.04 by Ragnar Thomsen
(rthomsen6 AT gmail.com)
.
This documentation is licensed under the terms of the GNU Free Documentation License.
This program is licensed under the terms of the GNU General Public License.