LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-16-2004, 09:58 AM   #1
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
how to check rpm dependencies


how to check rpm dependencies using command line?

any other way to check dependencies?
 
Old 05-16-2004, 10:59 AM   #2
jmorse
Member
 
Registered: Mar 2004
Location: United Kingdom
Distribution: LFS
Posts: 74

Rep: Reputation: 15
'rpm -R <package_name>', should do the trick, going by the man page at least.
 
Old 05-16-2004, 11:51 AM   #3
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
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]#
 
Old 05-16-2004, 02:53 PM   #4
jmorse
Member
 
Registered: Mar 2004
Location: United Kingdom
Distribution: LFS
Posts: 74

Rep: Reputation: 15
Odd.. try '--requires' instead?

I may have the wrong end of the stick, I haven't used rpm in a while.
 
Old 05-16-2004, 03:12 PM   #5
jmorse
Member
 
Registered: Mar 2004
Location: United Kingdom
Distribution: LFS
Posts: 74

Rep: Reputation: 15
Maybe "rpm -qR -p <package-file>"
 
Old 05-17-2004, 07:12 AM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Or use the --test switch instead? A place like rpmfind would have the deps listed as well, so you could just browse for them.
 
Old 05-18-2004, 09:47 AM   #7
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
-q only qorks for only installed rpms. when i type rpm -qR <package> and it report back <package> is not installed
 
Old 06-10-2004, 11:37 AM   #8
SharedMedia
LQ Newbie
 
Registered: Jun 2004
Location: Toronto
Distribution: Redhat
Posts: 1

Rep: Reputation: 0
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
 
Old 01-30-2005, 03:18 PM   #9
mayankjohri
Member
 
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Rep: Reputation: 30
for the uninstalled application use
rpm -qp --requires <rpm file>

Enjoy
mayank
 
Old 01-31-2005, 12:14 PM   #10
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
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>

Last edited by detpenguin; 01-31-2005 at 12:37 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to check library dependencies daihard Linux - Software 6 12-04-2014 10:26 PM
check dependencies syeronne Linux - Newbie 1 11-30-2005 09:53 AM
Does ./configure command do a check on dependencies? Akhran Linux - Newbie 1 08-18-2005 06:20 AM
How do I check for dependencies? glenn69 Linux - Newbie 4 05-06-2004 05:28 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration