1826432 Members
3827 Online
109692 Solutions
New Discussion

Re: rpm question

 
SOLVED
Go to solution
Masaki Birchmier
Frequent Advisor

rpm question

Have 2 question,

How do you list the content of a rpm package BEFORE it's installed?
rpm -ql only works on installed rpm's

I'm trying to install compat-egcs-6.2-1.1.2.16.i386.rpm, but it has a dependency compat-glibc-6.2, but compat-glibc-7.3 is already installed. Is it OK to install multiple versions of glibc? That's why I was trying to get a list of packages within the rpm so I can see where it would install.

Thanks,
Masaki
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: rpm question

from the man page

install-options
[--aid] [--allfiles] [--badreloc] [--excludepath OLDPATH]
[--excludedocs] [--force] [-h,--hash]
[--ignoresize] [--ignorearch] [--ignoreos]
[--includedocs] [--justdb] [--nodeps]
[--nodigest] [--nosignature] [--nosuggest]
[--noorder] [--noscripts] [--notriggers]
[--oldpackage] [--percent] [--prefix NEWPATH]
[--relocate OLDPATH=NEWPATH]
[--repackage] [--replacefiles] [--replacepkgs]
[--test]


Try the --test option with the -vv option.

It might give you what you need.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alex Lavrov.
Honored Contributor

Re: rpm question

In man page refer to this option:

-p
Query an (uninstalled) package . The
may be specified as an ftp or http
style URL, in which case the package header will be
downloaded and queried. See FTP/HTTP OPTIONS for
information on RPM's built-in ftp and http client
support.


I don't give a damn for a man that can only spell a word one way. (M. Twain)
Alex Lavrov.
Honored Contributor

Re: rpm question

Sorry, hit "submit" without answering the second question.

It won't let you have two different verions of rpms. You should resolve all the dependencies while installing and I'm afraid that you'll have to downgrade glibc vecause the rpm you're trying to install is old and there are no newer versions of it.

Like it says on rpmfind.net:
"This package includes a compiler that can be to generate binaries that will run on older Red Hat Linux systems (namely Red Hat Linux 6.2)"
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Stuart Browne
Honored Contributor

Re: rpm question

Before it's installed, you want 'rmp -qlp '.

The '-p' means 'query package file', as against 'query installed database'.

One long-haired git at your service...
Gopi Sekar
Honored Contributor
Solution

Re: rpm question


1. you can use -p option to query a rpm file for its contents before it gets installed.
eg: rpm -qpil
it will list package information(name, version,arch etc and list of files available under that rpm). you can pipe this output to less command if it goes beyond a page output

2. i believe you are trying to egcs libraries of RH 6.2 version in to RH 7.3
unless you have absolute requirement to do this, dont do this. Better install compat-egcs for RH 7.3(you can download them from RH website or rpmfind.net)

if you really want to use only this version then you can try installing the rpm with --nodeps which means it will install the rpm without dependency check. eg: rpm --nodeps -ivh compat-egcs-6.2-1.1.2.16.i386.rpm

But there is no guarantee that the installed RPM will work fine. At the same time if you downgrade the version of compat-glibc in your system then existing package which depends on this library will not run.

You call for it,
Gopi
Never Never Never Giveup