How to curl and unzip to a certain directory? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite













This question already has an answer here:



  • How to redirect output of wget as input to unzip?

    5 answers



How to curl and unzip to a certain directory?



you curl a file to stdout then unzip to some dir.







share|improve this question












marked as duplicate by Stephen Kitt, ilkkachu, G-Man, Jan, roaima Jan 31 at 15:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    -1
    down vote

    favorite













    This question already has an answer here:



    • How to redirect output of wget as input to unzip?

      5 answers



    How to curl and unzip to a certain directory?



    you curl a file to stdout then unzip to some dir.







    share|improve this question












    marked as duplicate by Stephen Kitt, ilkkachu, G-Man, Jan, roaima Jan 31 at 15:58


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite












      This question already has an answer here:



      • How to redirect output of wget as input to unzip?

        5 answers



      How to curl and unzip to a certain directory?



      you curl a file to stdout then unzip to some dir.







      share|improve this question













      This question already has an answer here:



      • How to redirect output of wget as input to unzip?

        5 answers



      How to curl and unzip to a certain directory?



      you curl a file to stdout then unzip to some dir.





      This question already has an answer here:



      • How to redirect output of wget as input to unzip?

        5 answers









      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 30 at 11:04









      user273275

      13




      13




      marked as duplicate by Stephen Kitt, ilkkachu, G-Man, Jan, roaima Jan 31 at 15:58


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by Stephen Kitt, ilkkachu, G-Man, Jan, roaima Jan 31 at 15:58


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          unzip (version 6.00) can not extract files read from standard input (this is mentioned in the unzip manual, in the "BUGS" section), so the file will need to be saved locally before extraction:



          curl -o myfile.zip "some URL"
          unzip myfile.zip -d "some directory"
          rm -f myfile.zip


          where some directory is the directory into which you'd like to extract the archive.






          share|improve this answer




















          • But jar can...
            – Stephen Kitt
            Jan 30 at 22:18

















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          unzip (version 6.00) can not extract files read from standard input (this is mentioned in the unzip manual, in the "BUGS" section), so the file will need to be saved locally before extraction:



          curl -o myfile.zip "some URL"
          unzip myfile.zip -d "some directory"
          rm -f myfile.zip


          where some directory is the directory into which you'd like to extract the archive.






          share|improve this answer




















          • But jar can...
            – Stephen Kitt
            Jan 30 at 22:18














          up vote
          0
          down vote



          accepted










          unzip (version 6.00) can not extract files read from standard input (this is mentioned in the unzip manual, in the "BUGS" section), so the file will need to be saved locally before extraction:



          curl -o myfile.zip "some URL"
          unzip myfile.zip -d "some directory"
          rm -f myfile.zip


          where some directory is the directory into which you'd like to extract the archive.






          share|improve this answer




















          • But jar can...
            – Stephen Kitt
            Jan 30 at 22:18












          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          unzip (version 6.00) can not extract files read from standard input (this is mentioned in the unzip manual, in the "BUGS" section), so the file will need to be saved locally before extraction:



          curl -o myfile.zip "some URL"
          unzip myfile.zip -d "some directory"
          rm -f myfile.zip


          where some directory is the directory into which you'd like to extract the archive.






          share|improve this answer












          unzip (version 6.00) can not extract files read from standard input (this is mentioned in the unzip manual, in the "BUGS" section), so the file will need to be saved locally before extraction:



          curl -o myfile.zip "some URL"
          unzip myfile.zip -d "some directory"
          rm -f myfile.zip


          where some directory is the directory into which you'd like to extract the archive.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 30 at 11:09









          Kusalananda

          103k13202318




          103k13202318











          • But jar can...
            – Stephen Kitt
            Jan 30 at 22:18
















          • But jar can...
            – Stephen Kitt
            Jan 30 at 22:18















          But jar can...
          – Stephen Kitt
          Jan 30 at 22:18




          But jar can...
          – Stephen Kitt
          Jan 30 at 22:18


          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay