LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-12-2005, 01:23 AM   #1
srosburg
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Rep: Reputation: 0
How to install all RPMs in a directory


Hi,

I'm fairly new to Linux and am wondering if somebody can tell me the easiest way to install all RPMs within a directory, especially when some of the RPMs within the directory have dependencies on other RPMs within the directory. I'm using Fedora Core 3.

Thanks in advance,

Steve
 
Old 12-12-2005, 01:59 AM   #2
FogSwimmer
Member
 
Registered: Sep 2003
Distribution: Kubuntu / debian / SuSE
Posts: 73

Rep: Reputation: 15
As I understand your question, you have a bunch of rpm files in one directory and want to install all of them all at once.

To achieve this, change to that directory and type (as root)

# rpm -ivh *.rpm

Interdependencies between these rpms will be taken care of as well in this way.

f

Last edited by FogSwimmer; 12-12-2005 at 02:00 AM.
 
Old 12-12-2005, 05:33 AM   #3
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 11
Posts: 196

Rep: Reputation: 30
i use

rpm -i --nodeps *.rpm

i dont know if its different from

Quote:
Originally Posted by FogSwimmer
# rpm -ivh *.rpm
Interdependencies between these rpms will be taken care of as well in this way.
f
or which is more safer.but it works for me.
 
Old 12-12-2005, 07:05 AM   #4
FogSwimmer
Member
 
Registered: Sep 2003
Distribution: Kubuntu / debian / SuSE
Posts: 73

Rep: Reputation: 15
the --nodeps flag means that dependencies will be ignored. I would only use this flag as a last resort and if you are pretty sure the package will work nonetheless.
The other flags are:
i install
v verbose
h print hash marks (#) for installation progress
 
Old 12-12-2005, 09:55 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
I think the best way to install rpms is
Code:
#rpm -Uvh *.rpm
If you use -ivh, rpm will refuse to install new packages if old ones with the same name exist on the system.
 
Old 12-12-2005, 10:11 AM   #6
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 11
Posts: 196

Rep: Reputation: 30
cool i just learnt new options that can be rpm command. thanks.
 
Old 12-13-2005, 12:17 AM   #7
srosburg
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks!

I knew about the different flags, but I didn't know I could use *.rpm to automatically resolve the dependent packages first. Thanks for the help!

Steve
 
Old 12-18-2005, 03:19 AM   #8
djuhl30
Member
 
Registered: Dec 2005
Location: IRAQ (BACK @ FT HOOD NOW)
Distribution: GENTOO now
Posts: 98

Rep: Reputation: 16
Google rpm. The the www.rpm.org or com will tell you all you need to know about rpms. It even tells you how to build them. Building gets a little confusing, but if you keep with it, you can use the simple macros in the spec file to accomplish it. You'll be looking for the maxiumrpm documentation. You'll find naming a rpm is very important to the rpm database. If it isnt the exact name of the rpm installed by your distro, it installs it seperately. Hope this helps as well... I built a rpm for xmms with mp3 in it, so it will always work in the future. I dont need to remember links to the plugin anymore. This maybe useful to you seeing you run Fedora, and Fedora disables the mp3 plugin. Basically if you compile xmms it has mp3 support. The original code wasnt altered.


Dave
 
1 members found this post helpful.
Old 01-08-2017, 09:27 PM   #9
chromechris
LQ Newbie
 
Registered: Sep 2016
Posts: 2

Rep: Reputation: Disabled
Local RPM's

Cool. I guess this only works if your RPM's are coming from a defined repo right? I have RPM files in a directory, but even if i run RPM with the suggested options above, I get a "error: Failed dependencies:" error message. Any thoughts, thanks in advance guys.
 
Old 01-09-2017, 05:41 AM   #10
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 14

Rep: Reputation: Disabled
http://fedoranews.org/alex/tutorial/rpm/
 
Old 01-09-2017, 06:22 AM   #11
petelq
Member
 
Registered: Aug 2008
Location: UK
Distribution: openSUSE(Leap and Tumbleweed) and, at the moment, leap 15 alpha
Posts: 218

Rep: Reputation: Disabled
Quote:
Originally Posted by chromechris View Post
Cool. I guess this only works if your RPM's are coming from a defined repo right? I have RPM files in a directory, but even if i run RPM with the suggested options above, I get a "error: Failed dependencies:" error message. Any thoughts, thanks in advance guys.
That means that some file dependencies needed by your rpms are not in the folder.
I don't use fedora but it should allow you to add the folder of rpms to your list of repos. That way, if you run it through yum(is that fedora?) it will also pick up dependencies if they are available.
Alternatively, your error message should tell you which dependencies are missing. You can down load and install them first. (That may give you additional dependency issues and is not the best solution)
 
1 members found this post helpful.
Old 01-09-2017, 07:11 AM   #12
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by chromechris View Post
Cool. I guess this only works if your RPM's are coming from a defined repo right? I have RPM files in a directory, but even if i run RPM with the suggested options above, I get a "error: Failed dependencies:" error message. Any thoughts, thanks in advance guys.
The dependency issue arises around shared packages or libraries on which several other packages have dependencies but where they depend on different and incompatible versions of the shared packages. If the shared package or library can only be installed in a single version, the user may need to address the problem by obtaining newer or older versions of the dependent packages. This, in turn, may break other dependencies and push the problem to another set of packages.

New users of Linux frequently get bit on the backside when they suffer from "upgrade-itis" on what is perceived as "old" software.
Linux is not Windows (don't be offended). Where are all these rpms coming from?

https://en.wikipedia.org/wiki/Dependency_hell

You can bypass the deps requirement as others have shown but in my experience,
this bypass can possibly show up somewhere else as a missing feature or Broken something.

Last edited by Habitual; 01-09-2017 at 07:16 AM.
 
Old 01-09-2017, 08:10 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,245

Rep: Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424Reputation: 4424
Quote:
Originally Posted by chromechris View Post
Cool. I guess this only works if your RPM's are coming from a defined repo right? I have RPM files in a directory, but even if i run RPM with the suggested options above, I get a "error: Failed dependencies:" error message. Any thoughts, thanks in advance guys.
Nope....you can type in "yum install <name of rpm file in a directory>", and it will install things. Also...you are aware that you re-opened a thread that had been closed for TWELVE YEARS, aren't 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 directory from a fc3 cd vetrivelsn Fedora 3 12-21-2004 05:05 PM
RH 9 rpms will not install l4azyslaxxor Linux - Newbie 8 06-17-2004 04:58 PM
rpms source directory-needed for nvidia installer so noob Mandriva 4 06-13-2004 07:21 AM
Can't install RPMs puppy Fedora 1 05-26-2004 07:08 PM
Can't install rpms!! Jojo87 Linux - Newbie 1 02-10-2004 01:22 PM

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

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