LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help in RPM creation (http://www.linuxquestions.org/questions/linux-newbie-8/need-help-in-rpm-creation-916357/)

snaryanan@gmail.com 11-30-2011 07:42 AM

Need help in RPM creation
 
Hi,

I'm new to Linux. I have to create an RPM which needs to extract a set of folders from a tar file and copy it to the destination directory. I don't know how to proceed. Kindly help me. Thanks in advance.

aazkan 11-30-2011 08:29 AM

Hi,

May i ask why would you need an RPM for that? Is it a pre-requisite?
If you're wanting to tar out something this should be sufficient.

Code:

tar xvf sometar.tar /somepath
or if it's a tar.gz

Code:

tar xzvf sometar.tar.gz /somepath

snaryanan@gmail.com 11-30-2011 08:48 AM

Thanks for the reply aazkan.

It's for our project needs. We decided to distribute the files using rpm for security reasons.

We decided to go with tar command but the company decide to go with rpm.

Thanks.


All times are GMT -5. The time now is 04:45 AM.