how to check rpm dependencies
how to check rpm dependencies using command line?
any other way to check dependencies? |
'rpm -R <package_name>', should do the trick, going by the man page at least.
|
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]# |
Odd.. try '--requires' instead?
I may have the wrong end of the stick, I haven't used rpm in a while. |
Maybe "rpm -qR -p <package-file>"
|
Or use the --test switch instead? A place like rpmfind would have the deps listed as well, so you could just browse for them.
|
-q only qorks for only installed rpms. when i type rpm -qR <package> and it report back <package> is not installed
|
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 |
for the uninstalled application use
rpm -qp --requires <rpm file> Enjoy mayank |
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. |