Re: [SLUG] RPMs and queries

From: Ed Centanni (ecentan1@tampabay.rr.com)
Date: Mon May 14 2001 - 19:41:38 EDT


Norbert Cartagena wrote:
>
> > Norbert Cartagena wrote:
> > >
> > > I just downloaded some of the video drivers for my Inspiron from Dell.
> > > The drivers are in RPM format. They are built for Red Hat 7.0 but I'm
> > > wanting to use them for my SuSE system. Is there any way that I can test
> > > of it would, say kill X, or if I could use it safely (it would give
> > > 1024x768 instead of just 1400x1050). Is there any way I could tear down
> > > the RPM and look at the config files or scripts myself?
> > >
> Ed Centanni wrote:
> >
> > rpm -qlpv <target.rpm> to look at (list) the files
> > rpm -qp --scripts <target.rpm> to look at the scripts
> >
> > you can combine the above to look a both
> > rpm -qlpv --scripts <target.rpm>
>
> Well, I tried both the MC and the rpm <options> but this is what came
> up:
>
> norb@yoda:~/dell > rpm -qp --scripts atimp314.rpm
> postinstall script (through /bin/sh):
> ln -sf /usr/X11R6/bin/XFree86 /etc/X11/X
>
> norb@yoda:~/dell > rpm -qlpv atimp314.rpm
> -rw-r--r-- root root 605 Aug 30 2000 /dell/X11/README
> -rw-r--r-- root root 1225 Aug 30 2000 /dell/X11/XF86Config-1400
> -rw-r--r-- root root 1225 Aug 30 2000 /etc/X11/XF86Config-4
>
> I did a check on /usr/X11R6/bin/XFree86 and /etc/X11/X and, as far as
> SuSE goes, these files don't exist. Now, does this mean that the scripts
> are looking for these files or... well, what does the first output mean?

It means that your rpm has a one line "postinstall" script and not any
more.

The other lines are the three files that are in the tarball section of
the rpm -- yes rpms have a tarball. Your output means that the rpm
contains three files and a one line script that is run after the files
are installed to create a link. To read the contents of the files you
have to unpack them. If you want them in a directory other than the one
intended then you have to work some other magic. see the --relocate
oldpath=newpath and the --noscripts options in the man pages. "man
rpm".

> I mean, it looks like it's linking one to the other, but since they
> don't exists...

It's a postinstall script.

> Also, when I went inside using MC, I saw a couple of
> scripts and READMEs in the *.cpio file, but when I tried to read me, it
> complained to me about "wrong filesystem" or something like that. I also
> tried
>
> rpm --test
>
> but, oddly enough, this option doesn't exist (even though it in the man
> page).
>
> Any hints?
>
> Thanks,
> Norb
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:01:14 EDT