LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-08-2003, 11:05 AM   #1
free_andrew
Member
 
Registered: Dec 2003
Location: Skopelos, Greece
Distribution: Mandrake 9.2, Windows XP Pro
Posts: 32

Rep: Reputation: 15
Question Installing multiple RPM Packages


After finally getting my head around the concept of RPM, I've come across a situation which wasn't explained in the RPM HOWTO.

How does one go about installing multiple RPM's? For example, the latest KDE desktop has a crap-load of RPMS...am I supposed to do RPM -ivh <package> for each and every one? Is there a *.RPM command or something like that which takes care of the whole thing? I've already tried referrring to the directory, but that doesn't seem to work.

Help.
 
Old 12-08-2003, 11:12 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
You can try rpm -ivh *.rpm. That will make rpm try to install all the rpms in the directory. Sometimes you need to do it twice because of dependencies (although that might have changed since it has been a few years since I used RedHat).

Håkan
 
Old 12-08-2003, 11:20 AM   #3
free_andrew
Member
 
Registered: Dec 2003
Location: Skopelos, Greece
Distribution: Mandrake 9.2, Windows XP Pro
Posts: 32

Original Poster
Rep: Reputation: 15
Why is there so much variety in the types of installation files? KDE installs as an RPM package. Netscape can be installed by running the installation script. What's up with that?
 
Old 12-08-2003, 11:35 AM   #4
frogman
Member
 
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Rep: Reputation: 30
yeah, you can do.

cd to/your/kde/packages/directory/

su to root, then

rpm -ivh *.rpm <--------- will install everything in the current directory (and prompt if you're missing parts)

rpm -Uvh *.rpm <----------will upgrade existing packages and install those not already installed

rpm -Fvh *.rpm <----------will only upgrade installed packages. Useful if you've got an "patches" cd or directory.
 
Old 12-08-2003, 02:04 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Quote:
Originally posted by free_andrew
Why is there so much variety in the types of installation files? KDE installs as an RPM package. Netscape can be installed by running the installation script. What's up with that?
It's because the developers have made different choices. Not all distributions are rpm-based - many common distros like Debian, Slackware and Gentoo do not use the rpm package management system. rpm isn't the only package management system, and it's not the best, only the most common.

So if you are going to distribute [i]one[/b] binary package that will install on all compatible systems, you can make a simple installer (or use the Loki installer, etc), or tar the files and put some instructions in the INSTALL file. This has a big upside for the developer as it limits the support generated and they can focus on writing good instructions for the one way there is installing the program. If you were to distribute your program (or whatever it is) in different package systems (rpms for Redhat, Mandrake and SuSE, tgz's for Slackware/Vector, debs for Debian/Libranet/Knoppix...etc) you would have to make sure they all work as expected and you will also have to know these different systems well.

If you're distributing as source, most of the time you'll just tar it up and expect users to read the INSTALL and README files.


Håkan
 
  


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
Trouble installing packages using rpm on Mandrake 10.0 Harry Seldon Linux - Software 2 08-05-2005 02:21 PM
Installing RPM packages mission_control Linux - Software 3 09-27-2004 07:17 PM
installing multiple packages btexpress Linux - Software 10 05-24-2004 12:30 AM
Installing multiple cd with the same packages Sylhouette Slackware 2 11-14-2003 05:46 PM
installing rpm and tgz packages?? Ikik General 6 10-07-2003 08:00 AM


All times are GMT -5. The time now is 09:27 PM.

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