LinuxQuestions.org
Register a domain and help support LQ
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 12-10-2004, 03:50 AM   #1
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
Help installing multiple rpms at once?


Im planning to install xfce and i was wondering how to install all the rpms at once? It will be a pain to install all rpm files one at a time

Thanks for the help
 
Old 12-10-2004, 05:12 AM   #2
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
Code:
rpm -Uhv rpm1.rpm rpm2.rpm rpm3.rpm rpm4.rpm rpm5.rpm
you can wildcard it too but sometimes you run into dependency issues, especially with packages that have "circular" dependencies.
Code:
 rpm -Uhv *.rpm
linux_terror
 
Old 12-10-2004, 05:30 AM   #3
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
ok cool, is it possible to use the arguement -nodep though?
 
Old 01-05-2005, 02:23 PM   #4
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
hmm, did more research and to install multiple rpms at once with no dependancies is:

rpm -Uhv *.rpm --nodeps --force
 
Old 01-09-2005, 09:43 AM   #5
Heinz
Member
 
Registered: Apr 2002
Location: Amsterdam (NL)
Distribution: Fedora 17
Posts: 38

Rep: Reputation: 15
It's never a good idea to use the --force and --nodeps options, unless you know very very well what you're doing. Dependencies aren't there just to annoy users (although they do). They exist for a reason. Applications generally need certain libraries to function correctly, like it or not.

If you use these options, at first everything may seem to go fine, but you'll run a great risk of breaking stuff. Whatever you've installed may turn out not to work properly after all, and you're very likely to waste your rpmdb, which will cause more installation troubles in the future.

If you put all necessary rpms in a single directory and use rpm -Uvh *.rpm, rpm generally does a very good job sorting out the order in which it needs to install the rpms in order to solve any dependency issues. It's always better to satisfy dependencies properly, in stead of looking away and pretending they don't exist. You can use http://rpmfind.net to find missing packages.
 
Old 01-09-2005, 11:54 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
I don't recommend using sites such as rpmfind for packages or dependencies if you can help it. You are better of setting up a package management tool such as apt/synaptic and use proven repositories such as the ones provided by the distro and well tried out third parties such as freshrpms and dag coz dependencies are automatically resolved and you are sure that the packages are for your particular distro.

Last edited by reddazz; 01-09-2005 at 11:55 AM.
 
Old 01-09-2005, 12:18 PM   #7
Heinz
Member
 
Registered: Apr 2002
Location: Amsterdam (NL)
Distribution: Fedora 17
Posts: 38

Rep: Reputation: 15
Quote:
Originally posted by reddazz
I don't recommend using sites such as rpmfind for packages or dependencies if you can help it. You are better of setting up a package management tool such as apt/synaptic and use proven repositories such as the ones provided by the distro and well tried out third parties such as freshrpms and dag coz dependencies are automatically resolved and you are sure that the packages are for your particular distro.
You're absolutely right there. I use apt a lot myself.
Occasionaly though, I do find packages from rpmfind will solve problems even if they are for other distro's, as long as they're somewhat similar. Of course your mileage may vary, and it's probably not good practice. I personally prefer compiling from source if no packages for my distribution are available.
 
Old 01-09-2005, 02:30 PM   #8
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
You're using SuSE, so why not use the YAST software manager? It'll take care of deps for you.
 
  


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
Installing RPMs NomadABC Fedora 2 01-08-2005 10:28 AM
help with installing multiple RPMs; dpend on each other funkbomb Linux - Software 10 03-29-2004 01:21 PM
installing rpms doesn't do anything c0mpl3t3n00b Linux - Newbie 9 02-20-2004 10:58 AM
Need help installing RPMs Lossenelin Linux - Newbie 2 11-03-2002 04:38 PM
installing rpms xRAGEx Linux - General 4 01-19-2002 10:26 PM


All times are GMT -5. The time now is 10:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration