{"id":1696,"date":"2012-02-20T14:15:48","date_gmt":"2012-02-20T18:15:48","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1696"},"modified":"2013-03-20T08:44:20","modified_gmt":"2013-03-20T12:44:20","slug":"unzip-skipping-filename-zip-need-pk-compat-v4-5","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/unzip-skipping-filename-zip-need-pk-compat-v4-5","title":{"rendered":"Unzip: skipping filename.zip need PK compat. v4.5"},"content":{"rendered":"<p>Sometimes extracting a zip file using the unzip command may result in the &#8220;skipping: filename.zip\u00a0 need PK compat. v4.5&#8221; error message.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># unzip filename.zip<\/span>\r\nArchive:\u00a0 filename.zip\r\n\u00a0\u00a0 skipping: filename.zip\u00a0 need PK compat. v4.5 (can do v2.1)<\/pre>\n<\/blockquote>\n<p>This is due to the file been compressed with the latest version of PKZIP which the unzip command cannot handle. The solution is to install p7zip package which can handle the files compressed using PKZIP.<\/p>\n<p>Download the latest version of p7zip:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># wget http:\/\/sourceforge.net\/projects\/p7zip\/files\/p7zip\/\\<\/span>\r\n<span style=\"color: #0000ff;\">9.20.1\/p7zip_9.20.1_x86_linux_bin.tar.bz2<\/span><\/pre>\n<\/blockquote>\n<p>Extract the file<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># tar -jxf p7zip_9.20.1_x86_linux_bin.tar.bz2<\/span><\/pre>\n<\/blockquote>\n<p>goto the extracted directory and run the installer<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># .\/install.sh<\/span><\/pre>\n<\/blockquote>\n<p>This will install the &#8216;7za&#8217; command on your server using which the zip file can be extracted<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># 7za x filename.zip<\/span>\r\n Processing archive: filename.zip\r\n Extracting\u00a0 filename\r\n Everything is Ok<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes extracting a zip file using the unzip command may result in the &#8220;skipping: filename.zip\u00a0 need PK compat. v4.5&#8221; error message.<\/p>\n<p># unzip filename.zip<br \/>\nArchive:\u00a0 filename.zip<br \/>\n\u00a0\u00a0 skipping: filename.zip\u00a0 need PK compat. v4.5 (can do v2.1)<\/p>\n<p>This is due to the file been compressed with the latest version of PKZIP which the unzip command cannot handle. The solution is to install p7zip package which can handle the files compressed using PKZIP.<br \/>\nDownload the latest version of p7zip:<\/p>\n<p># wget http:\/\/sourceforge.net\/projects\/p7zip\/files\/p7zip\/\\<br \/>\n9.20.1\/p7zip_9.20.1_x86_linux_bin.tar.bz2<\/p>\n<p>Extract the file<\/p>\n<p># tar -jxf p7zip_9.20.1_x86_linux_bin.tar.bz2<\/p>\n<p>goto the extracted directory and run the installer<\/p>\n<p># .\/install.sh<\/p>\n<p>This will [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1343,1344,1342,1341,1340],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1696"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1696"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1696\/revisions"}],"predecessor-version":[{"id":1700,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1696\/revisions\/1700"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}