EnglishFrenchSpanish

OnWorks favicon

patool - Online in the Cloud

Run patool in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command patool that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


patool - portable archive file manager

SYNOPSIS


patool [global-options]
(list|test|extract|create|diff|search|repack|recompressfP|formats) [command-options]
<command-arguments>...

DESCRIPTION


Various archive formats can be created, extracted, tested, listed, searched, repacked,
recompressed and compared by patool. The advantage of patool is its simplicity in handling
archive files without having to remember a myriad of programs and options.

The archive format is determined by the file(1) program and as a fallback by the archive
file extension.

patool supports 7z (.7z), ACE (.ace), ADF (.adf), ALZIP (.alz), APE (.ape), AR (.a), ARC
(.arc), ARJ (.arj), BZIP2 (.bz2), CAB (.cab), COMPRESS (.Z), CPIO (.cpio), DEB (.deb), DMS
(.dms), FLAC (.flac), GZIP (.gz), ISO (.iso), LRZIP (.lrz), LZH (.lha, .lzh), LZIP (.lz),
LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar), RZIP (.rz), SHN (.shn), TAR (.tar), XZ
(.xz), ZIP (.zip, .jar), ZOO (.zoo) and ZPAQ (.zpaq) formats. It relies on helper
applications to handle those archive formats (for example bzip2 for BZIP2 archives).

The archive formats TAR, ZIP, BZIP2 and GZIP are supported natively and do not require
helper applications to be installed.

EXAMPLES


patool extract archive.zip otherarchive.rar
patool --verbose test dist.tar.gz
patool list package.deb
patool --verbose create myfiles.zip file1.txt dir/
patool diff release1.0.tar.xz release2.0.zip
patool search "def urlopen" python-3.3.tar.gz
patool repack linux-2.6.33.tar.gz linux-2.6.33.tar.bz2
patool recompress images.zip

GLOBAL OPTIONS


-v, --verbose
Display more info about what patool does, and display the output of helper
applications. Can be given multiple times to increase the output even more.

--non-interactive
Try to prevent any interactive user input (ie. prompting for passwords or for
overwriting duplicate files). Use this option with care since overwriting files or
ignoring password prompts could lead to unintended consequences.
This only works for programs that allow preventing user prompts. Currently those
are arj, 7z and rar.

COMMANDS


The following rules apply to all commands:

· Existing files are never overwritten.

· The original archive will never be removed.

· Files outside the output directory will never be created. This relies on archive
program options to prevent unpacking of files with an absolute path name (eg.
--no-absolute-filenames for cpio(1)).

The following commands are available.

extract
patool extract [--outdir directory] <archive>...

Extract files from given archives. The original archives will never be removed and are
left as is.

--outdir directory
Extract to the given output directory. Default is to extract to the current working
directory.

If the archive contains exactly one file or directory, the archive contents are extracted
directly to the output directory. Else the files are extracted in a newly created
subdirectory of the output directory. The new directory is named after the archive
filename without the extension.
This prevents cluttering the output directory with a lot of files from the extracted
archive.

All extracted files are ensured that they are readable by the current user.

list
patool list <archive>...

List files in archives.

create
patool create <archive> <file-or-directory>...

Create an archive from given files. All of the given files to add to the archive must be
readable by the current user. The format of the archive to create is determined by the
archive file extension. If the archive program has options to maximize file compression,
patool uses those options.

test
patool test <archive>...

Test the given archives. If the helper application does not support testing, the archive
contents are listed instead.

diff
patool diff <archive1> <archive2>

Show differences between two archives with the diff(1) program. The diff options used are
-urN.

search
patool search <pattern> <archive>

Search in archive contents for given pattern using the grep(1) program. The grep options
used are -r; additional options can be supplied with the GREP_OPTIONS environment
variable.

repack
patool repack <archive> <archive_new>

Repackage archive to a different format. The target archive format is determined by the
file extension of archive_new.

recompress
patool recompress <archive>

Recompress archive to a smaller file size. If the resulting file is not smaller, the
archive is left unchanged.

formats
patool formats

Show all supported archive formats (ie. which helper applications are available).

HELP OPTION


Specifying the help option displays help for patool itself, or a command.
For example:
patool --help - display help for patool
patool extract --help - display help for the extract command

SHELL ALIASES


When running under a Unix shell the following aliases can be defined to save some typing:
alias pl='patool list'
alias px='patool extract'
alias pc='patool create'
alias pd='patool diff'

Use patool online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad