LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 12-30-2005, 03:25 AM   #1
sceadu
Member
 
Registered: Jan 2003
Posts: 76

Rep: Reputation: 15
How can I install a rpm package and get the dependencies installed automatically?


Hi,

I have installed FC4 with the minimal install option.

So, now, I will like to install a few more packages using rpm. However, I'm always faced with the problem of having to find and install the dependencies one by one.

Is there a simpler way whereby I can rpm install a package and then make it search for all the dependencies and install them automatically.
 
Old 12-30-2005, 03:36 AM   #2
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 30
Use yum it does all the resolving for you.Take a look at

http://stanton-finley.net/fedora_cor...ion_notes.html

and follow instructions on yum
 
Old 12-30-2005, 04:18 AM   #3
shams
Member
 
Registered: Jan 2004
Posts: 400

Rep: Reputation: 30
open the rpm dirctory you wnat to install the run:
yum localinstall *.rpm
or use smart:
smart install ./*.rpm
to install smart read this link
 
Old 12-30-2005, 10:56 PM   #4
imdeemvp
LQ Newbie
 
Registered: Sep 2004
Location: California
Distribution: Fedora Core
Posts: 22

Rep: Reputation: 15
The best way to install dependencies will always be to use yum.
 
Old 12-31-2005, 06:16 AM   #5
0be1
LQ Newbie
 
Registered: Dec 2005
Location: Murfreesboro, TN
Distribution: FC4
Posts: 13

Rep: Reputation: 0
If you are actually using XWindows I highly recommend installing yumex (yum extended). It is a graphical version of yum. It still installs the dependencies like yum, but you also get to see the files that are installed, ones you may want to upgrade, etc. It shows all the dependencies that are needed right before the actual install and has many of the major repositories (repos) already configured plus you can add others. Check it out and you will never use yum at the command line again.

I think you just do yum install yumex from the command prompt if memory serves. Once installed I think it shows up under system tools.

Enjoy

0be1
 
Old 01-02-2006, 07:37 PM   #6
sceadu
Member
 
Registered: Jan 2003
Posts: 76

Original Poster
Rep: Reputation: 15
Thanks. I think yum will be very useful.

However, I'm faced with some difficulties.

1)I have write to hard disk all the rpms from the FC4 cd. The directory containing the rpms is /root/RPM.
So now, I want to create a respository using yum-arch /root/RPM
But I get many error messages that say "rpmError opening rpm packagename - error public key not available"

2) when I try to yum install packagename, I get this error message "Cannot find a valid baseurl for repo: updates-released"

Please advise.

 
Old 01-03-2006, 08:52 PM   #7
shams
Member
 
Registered: Jan 2004
Posts: 400

Rep: Reputation: 30
yum will be better if you can manage local repo for yum, if not use the smart, smart has option to add the lcoal rpm directories, add the /root/RPM directory to smart and run the with:
smart install Pakage_name
sarmt will resolve the dependencies from local driectories as will from online repos.
 
Old 01-06-2006, 12:34 AM   #8
Uday123
Member
 
Registered: Nov 2005
Posts: 80

Rep: Reputation: 15
Yum will be the best option to install the packagesand their dependencies.
sol'n for ur error:
#cd /etc/yum.repos.d/
here u have 6 files.edit them and update(write) the baseurl whatever u want.
By default it is fedora site address.
Then check the status of yum service(#/etc/init.d/yum status).Then restart it.

Then try to install a package.

Good Luck
 
Old 01-06-2006, 01:10 AM   #9
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
I have Linux installed, now how do I do stuff like installing more software?
# I can't figure out what software I want and how to install/uninstall it
The table of equivalents, replacements, analogs of Windows software in Linux
# Find software here
Freshmeat
Sourceforge
rpmfind
# Guides to software management
LNAG: 4.5 Package installation and rpm package manager
Rute Guide's software explanation

FC4 should have these available

up2date
yum
apt-get

I recommend checking out Fedora Core 4 Tips and Tricks
 
Old 01-06-2006, 03:54 PM   #10
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,398

Rep: Reputation: 55
Yumex is great but download a package or tar.gz outside
of fedora mirrors and the dependency problem are pure hell!!
Yum, yumex won't and can't help.
one damn dependency has another dependency problem.
Until this problem is taken care of Linux will never
make it in the desktop market.
And as for that, I sure hate to this happen, because
I LOVE Linux.

Jim
 
Old 01-06-2006, 04:10 PM   #11
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Really? Linux made it to my desktop, ever since 1999.

Fedora Core 3 Tips and Tricks

The best dependency resolution I have found is portage, the package manager for Gentoo.
 
  


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
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM
rpm: package is / is not installed ??? blue.spark Linux - Software 3 02-26-2005 09:29 AM
rpm cannot find installed dependencies guitarfella Slackware 1 02-23-2005 04:24 AM
Installing from source -- dependencies installed via RPM kimchee411 Linux - Newbie 2 10-19-2004 02:40 AM
rpm can't find installed dependencies? jbeiter Linux - General 4 09-17-2004 03:53 PM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration