{"id":3694,"date":"2019-07-23T15:43:11","date_gmt":"2019-07-23T14:43:11","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=3694"},"modified":"2025-06-09T09:31:22","modified_gmt":"2025-06-09T08:31:22","slug":"p7zip","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/tools\/p7zip\/","title":{"rendered":"p7zip"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"http:\/\/p7zip.sourceforge.net\/\">p7zip<\/a> is a port of the 7-zip compression tool to Linux. The <code>7za<\/code> executable is installed, which is a stand-alone executable (7za handles less archive formats than 7z).<\/p>\n<p>Version 16.02 is installed on the CSF.<\/p>\n<div class=\"warning\">\nDO NOT USE the 7-zip format for backup purpose on Linux\/Unix because 7-zip does not store the owner\/group of the file. Please use <code>tar<\/code> first to archive the files and then you may compress the tar file (see below). However we generally recommend using 7za only for extracting archives you may have been given or downloaded.\n<\/div>\n<h2>Restrictions on use<\/h2>\n<p>There are no restrictions on accessing this software on the CSF.<\/p>\n<h2>Set up procedure<\/h2>\n<p>We now recommend loading modulefiles within your jobscript so that you have a full record of how the job was run. See the example jobscript below for how to do this. Alternatively, you may load modulefiles on the login node and let the job <abbr title=\"add '#$ -V' to your jobscript\">inherit these settings<\/abbr>.<\/p>\n<p>Load one of the following modulefiles:<\/p>\n<pre>\r\nmodule load tools\/bintools\/p7zip\/16.02\r\n<\/pre>\n<h2>Running the application<\/h2>\n<p>Please do not run <code>7za<\/code> on the login node. Jobs should be submitted to the compute nodes via batch. You <em>may<\/em> run the following command to get a list of flags\/switches accepted by <code>7za<\/code>:<\/p>\n<pre>\r\n7za -h\r\n<\/pre>\n<h3>Serial batch job submission<\/h3>\n<p>Create a batch submission script (which will load the modulefile in the jobscript), for example:<\/p>\n<pre class='slurm'>\r\n#!\/bin\/bash --login\r\n#SBATCH -p serial  # Partition is required. Runs on an Intel hardware.\r\n#SBATCH -t 0-10    # Wallclock limit (days-hours). Required!\r\n                   # Max permitted is 7 days (7-0).\r\nmodule purge\r\nmodule load tools\/bintools\/p7zip\/16.02\r\n\r\n# To <strong>l<\/strong>ist the contents of an archive:\r\n7za l <em>archive.7z<\/em>\r\n\r\n# To e<strong>x<\/strong>tract (uncompress) an archive:\r\n7za x <em>archive.7z<\/em>\r\n\r\n# To create (<strong>a<\/strong>dd to) an archive by first tar-ing the files to preserve owner\/group:\r\ntar cf - <em>directoryname<\/em> | 7za a -si <em>directoryname<\/em>.tar.7z\r\n\r\n# To e<strong>x<\/strong>tract (uncompress) an archive created with the above tar method:\r\n7za x -so <em>directoryname<\/em>.tar.7z | tar xf -\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre class='slurm'>sbatch <em>scriptname<\/em><\/pre>\n<p>where <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"http:\/\/p7zip.sourceforge.net\/\">p7zip website<\/a><\/li>\n<li><a href=\"http:\/\/www.7-zip.org\/\">7-zip website<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview p7zip is a port of the 7-zip compression tool to Linux. The 7za executable is installed, which is a stand-alone executable (7za handles less archive formats than 7z). Version 16.02 is installed on the CSF. DO NOT USE the 7-zip format for backup purpose on Linux\/Unix because 7-zip does not store the owner\/group of the file. Please use tar first to archive the files and then you may compress the tar file (see below)&#8230; <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/tools\/p7zip\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":144,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3694","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/3694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=3694"}],"version-history":[{"count":8,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/3694\/revisions"}],"predecessor-version":[{"id":10317,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/3694\/revisions\/10317"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/144"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=3694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}