chocolatey - Unable to extract tar.gz package using Install-ChocolateyZipPackage function -


problem

extracting tar.gz package using install-chocolateyzippackage results in creation of file packagenameinstall containing directory, while directory should extracted.

$url = "http://packagename.tar.gz" $extractionpath = "c:/$packagename" install-chocolateyzippackage "$packagename" "$url" "$extractionpath" 

it possible include 7zip.commandline dependency , subsequently extract tar.gz package multiple times , removing downloaded package afterwards.

question

which chocolatey function able extract tar.gz packages?

chocolatey v0.9.10.1+: chocolatey's built in install-chocolateyzippackage , get-chocolateyunzip use vendored 7z.exe full, take advantage of widest amount of formats able uncompressed.

original answer

you can build dependency on 7z.commandline package , use extract tar.gz file in powershell installation steps. there not built-in command @ least have move forward right now.

here's example on github:

$installdir = "$(split-path -parent $myinvocation.mycommand.definition)"  start-process "7za" -argumentlist "x -o`"$installdir`" -y `"$file`"" -wait 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -