LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2006, 03:00 PM   #1
justmehere
Member
 
Registered: Jul 2005
Distribution: Mandrake 6.1
Posts: 59

Rep: Reputation: 15
rpm and solving dependencies


are there any switches which allow you to install a package and all of its dependencies in one (short) command ? if not what would be the most efficient steps in installing any package which contains dependencies. Can be any package nothing in particular.

thanks
 
Old 04-12-2006, 03:05 PM   #2
brianthegreat
Member
 
Registered: Oct 2005
Posts: 518

Rep: Reputation: 32
What distro are you running? If your running a redhat based distro like fedora then just use yum to resolve your dependencies.

yum install filename
 
Old 04-12-2006, 04:27 PM   #3
justmehere
Member
 
Registered: Jul 2005
Distribution: Mandrake 6.1
Posts: 59

Original Poster
Rep: Reputation: 15
thanks for the reply. i'm using an older version of Mandrake 8.1. i ran into the yum utility but saw that it was not for Mandrake. cheers
 
Old 04-12-2006, 04:51 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Mandriva/Mandrake uses urpmi instead of yum.
 
Old 04-12-2006, 05:35 PM   #5
justmehere
Member
 
Registered: Jul 2005
Distribution: Mandrake 6.1
Posts: 59

Original Poster
Rep: Reputation: 15
thanks again will check out urpmi. cheers
 
Old 04-12-2006, 07:58 PM   #6
justmehere
Member
 
Registered: Jul 2005
Distribution: Mandrake 6.1
Posts: 59

Original Poster
Rep: Reputation: 15
it worked thanks. but i've got another question...how can find out which package does a file belong to ? something like

rpm -qf filename/path ? but I have to know where the filename is located is there any other ways ?

thanks again

Last edited by justmehere; 04-12-2006 at 08:05 PM.
 
Old 04-12-2006, 08:12 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Thats the only method I know.
 
Old 04-13-2006, 02:23 AM   #8
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
Quote:
rpm -qf filename/path ? but I have to know where the filename is located is there any other ways
find / -name filename
rpm -qf path_obtained_from_above_command


A more faster method would be to use locate instead of find. However locate doesn't performs a search in real time but on an indexed database.

Also if its an command that you are searching for, then quickest way to determine file location is:
whereis command

Last edited by nitinatindore; 04-13-2006 at 02:24 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
solving dependencies on fedora 3, ? vtecturbo13 Linux - Software 4 10-21-2005 12:33 AM
Solving dependencies of libraries executive Linux - Software 1 03-25-2005 08:00 AM
solving rpm dependencies Kanchan Linux - Software 2 02-03-2005 06:37 AM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 01:44 AM
RPM Dependencies snatale1 Linux - Newbie 8 08-22-2003 11:08 AM


All times are GMT -5. The time now is 10:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration