Help!

extract pre and post scripts from the binary rpm

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management RSS
Next:  Festplatte spiegeln  
Author Message
Yakov Lerner
External


Since: Oct 17, 2006
Posts: 20



PostPosted: Tue Mar 20, 2007 4:17 am    Post subject: extract pre and post scripts from the binary rpm
Archived from groups: linux>redhat>rpm (more info?)

How can I exctract the %pre and %post script out of
the binary rpm ? rpm2cpio does not extract them.

Thanks
Yakov
Back to top
Troy Telford
External


Since: Mar 20, 2007
Posts: 2



PostPosted: Tue Mar 20, 2007 3:25 pm    Post subject: Re: extract pre and post scripts from the binary rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yakov Lerner wrote:

> How can I exctract the %pre and %post script out of
> the binary rpm ? rpm2cpio does not extract them.
>
> Thanks
> Yakov

I generally use 'mc' (the GNU Midnight Commander') to do this.

MC is basically a file manager. You just highlight the package in question,
hit <enter>, then select /INFO. Next select /SCRIPTS

And this is where the scripts are.

--
Troy Telford
Back to top
Michal Jaegermann
External


Since: Jun 06, 2004
Posts: 62



PostPosted: Wed Mar 21, 2007 5:03 pm    Post subject: Re: extract pre and post scripts from the binary rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yakov Lerner <iler.ml RemoveThis @gmail.com> wrote:
> How can I exctract the %pre and %post script out of
> the binary rpm ? rpm2cpio does not extract them.

rpm -qp --scripts some_package.rpm >wherever

Replace '--scripts' with '--triggers' if you want the later.

M.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum