LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02: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, 04: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, 04: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, 01: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, 08:43 AM   #5
Heinz
Member
 
Registered: Apr 2002
Location: Amsterdam (NL)
Distribution: Fedora 33
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, 10:54 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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 10:55 AM.
 
Old 01-09-2005, 11:18 AM   #7
Heinz
Member
 
Registered: Apr 2002
Location: Amsterdam (NL)
Distribution: Fedora 33
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, 01: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 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