[SWLUG] how can i control an RPM ?

Telsa Gwynne hobbit at aloss.ukuu.org.uk
Tue Jan 28 13:09:53 UTC 2003


On Fri, Jan 24, 2003 at 10:36:19AM +0000 or thereabouts, Justin Mitchell wrote:
> On Fri, 2003-01-24 at 10:26, Gareth Lewis wrote:
> 
> > since the kernel is different, but its probably a binary file,  I assume that the above is all that will happen.
> > 
> > SO, (A)   how do i check what the RPM install will do ?
> rpm -ql -p kernel-blah.rpm
>   will list the files the rpm contains
> 
> rpm -q --scripts -p kernel-blah.rpm
>   will list what scripts it will run, any 'postinstall scriptlet' is the
> most relevant.

Also, rpm --someoptions --somemore --test will tell you what it
-would- have done if run without the --test. It will not cover
scripts though, but Justin's response solves that.

--test is a brilliant option which crops up in different forms
in different commands. There's also --dummy-run and --dummy,
with either one or two hyphens (I think it's cdrecord -dummy,
for example), --dry-run (gpg --dry-run or gpg -n) and even make 
has some "tell me what this would have done" option which I forget.

Telsa




More information about the Swlug mailing list