2 Replies Latest reply on Jul 21, 2011 2:01 PM by junn777

    Studio change default location of the tar.gz

    junn777 Lurker

      Using Studio to build Linux OS and distribute our OS which is packaged as a tar.gz file.

       

      I need to have the appliance create a directory called /opt/cl and extract the tar.gz file into this directory.  Currently it will only extract into the / directory.

       

      I suspect I use the manifest.xml but I don't see any information on how to create and manage the manifest.xml file.

       

      Also I added some scripts like

      mkdir -p /opt/cl 

      to the manifest script but it never created that directory.

       

      any help is appreciated

        • 1. Re: Studio change default location of the tar.gz
          chorgeas Hot Shot

          I would suggest following procedure in your VMware Studio.


          1. cd /root/

          2. mkdir -p /root/opt/opt/cl

          3. Extract your tar.gz file in /root/opt/opt/cl folder

          4. Use /root/ folder as a working directory (pwd) and create rpm using mkpkg VMware Studio command. (Please read studio_developer guide for more details)


          This rpm will extract your data in /opt/cl folder.


          Need to know after extracting tar.gz file what is its file listing. e.g. as follows.


          [root@VA2 ~]# tar -tvzf cl.tar.gz
          drwxr-xr-x root/root         0 2011-07-21 10:11:12 cl/
          drwxr-xr-x root/root         0 2011-07-21 10:11:12 cl/dir1/
          drwxr-xr-x root/root         0 2011-07-21 10:11:12 cl/dir2/
          drwxr-xr-x root/root         0 2011-07-21 10:11:12 cl/dir3/
          -rw-r--r-- root/root         0 2011-07-21 10:10:56 cl/1
          -rw-r--r-- root/root         0 2011-07-21 10:10:56 cl/2
          -rw-r--r-- root/root         0 2011-07-21 10:10:56 cl/3
          -rw-r--r-- root/root         0 2011-07-21 10:10:56 cl/4
          -rw-r--r-- root/root         0 2011-07-21 10:10:56 cl/5
          -rw-r--r-- root/root         0 2011-07-21 10:10:56 cl/6
          -rw-r--r-- root/root         0 2011-07-21 10:10:56 cl/7
          -rw-r--r-- root/root         0 2011-07-21 10:10:56 cl/8



          1 person found this helpful
          • 2. Re: Studio change default location of the tar.gz
            junn777 Lurker

            Thank you for your help.

             

            I unfortunately need to be able to work directly with the tar.gz file and not create a rpm.  Creating the rpm would just add more work for me.

             

            Any help anyone can provide using the tar.gz and having it extract to a specified directoy would be great.  Also any help getting the manifest.xml script to work in the tar.gz would also be appreciated as it does not appear to be working either.   In case it helps we will have multiple tar.gz files containing tomcat, apache etc.. type information.

             

            I have combed the different guides and the information on tar.gz is very minimal and it does not explain how to use the manifest.xml.  Examples or any assistance would be greatly appreciated.

             

            I am new to Studio so references links etc.. are appreciated.

             

            Jon