LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to check rpm dependencies (https://www.linuxquestions.org/questions/linux-general-1/how-to-check-rpm-dependencies-182045/)

demmylls 05-16-2004 09:58 AM

how to check rpm dependencies
 
how to check rpm dependencies using command line?

any other way to check dependencies?

jmorse 05-16-2004 10:59 AM

'rpm -R <package_name>', should do the trick, going by the man page at least.

demmylls 05-16-2004 11:51 AM

i do that and i go this

[root@localhost myDownloads]# rpm -R openssl-0.9.7-1.i386.rpm
RPM version 4.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-aKfgpqV] [-aKfgpqVcdils] [-aKfgpqVcdilsaKfgpqV] [-aKfgpqVcdilsaKfgpqV] [-aKfgpqVcdilsaKfgpqVK] [-aKfgpqVcdilsaKfgpqVK] [-aKfgpqVcdilsaKfgpqVKi] [-aKfgpqVcdilsaKfgpqVKiv] [-aKfgpqVcdilsaKfgpqVKiv] [-aKfgpqVcdilsaKfgpqVKiv?] [-a|--all] [-f|--file] [-g|--group]
[-p|--package] [--specfile] [--whatrequires] [--whatprovides]
[-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list]
[--queryformat=QUERYFORMAT] [-s|--state] [--nomd5] [--nofiles]
[--nodeps] [--noscript] [--addsign] [-K|--checksig] [--import]
[--resign] [--nodigest] [--nosignature] [--initdb] [--rebuilddb]
[--aid] [--allfiles] [--allmatches] [--badreloc]
[-e|--erase <package>+] [--excludedocs] [--excludepath=<path>]
[--force] [-F|--freshen <packagefile>+] [-h|--hash] [--ignorearch]
[--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps]
[--nomd5] [--noorder] [--nosuggest] [--noscripts] [--notriggers]
[--oldpackage] [--percent] [--prefix=<dir>] [--relocate=<old>=<new>]
[--repackage] [--replacefiles] [--replacepkgs] [--test]
[-U|--upgrade <packagefile>+] [-D|--define 'MACRO EXPR']
[-E|--eval 'EXPR'] [--macros=<FILE:...>] [--nodigest] [--nosignature]
[--rcfile=<FILE:...>] [-r|--root ROOT] [--querytags] [--showrc]
[--quiet] [-v|--verbose] [--version] [-?|--help] [--usage]
[--scripts] [--setperms] [--setugids] [--conflicts] [--obsoletes]
[--provides] [--requires] [--info] [--changelog] [--triggers]
[--last] [--filesbypkg] [--fileclass] [--filecolor] [--fileprovide]
[--filerequire] [--redhatprovides] [--redhatrequires]
[--buildpolicy=<policy>] [--with=<option>] [--without=<option>]
[root@localhost myDownloads]#

jmorse 05-16-2004 02:53 PM

Odd.. try '--requires' instead?

I may have the wrong end of the stick, I haven't used rpm in a while.

jmorse 05-16-2004 03:12 PM

Maybe "rpm -qR -p <package-file>"

vectordrake 05-17-2004 07:12 AM

Or use the --test switch instead? A place like rpmfind would have the deps listed as well, so you could just browse for them.

demmylls 05-18-2004 09:47 AM

-q only qorks for only installed rpms. when i type rpm -qR <package> and it report back <package> is not installed

SharedMedia 06-10-2004 11:37 AM

MAN Pages help... Also these commands along with rpm --test..

--whatrequires <capability> Query all packages that requires <capability> for proper functioning.
--whatprovides <virtual> Query all packages that provide the <virtual> capa- bility.

LINK: http://www.rt.com/man/rpm.8.html

mayankjohri 01-30-2005 03:18 PM

for the uninstalled application use
rpm -qp --requires <rpm file>

Enjoy
mayank

detpenguin 01-31-2005 12:14 PM

you can check dependencies before actually installing the program by using

rpm -ivh --test <packagename>.rpm

this will list the dependency issues without actually installing the program...

also

rpm -qpR <rpmfilename>


All times are GMT -5. The time now is 06:36 AM.