Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found a rpm feature. If you rpm install * and one of the packages fails to install then none of the remaining packages will be installed.

Does anyone know how to use rpm to install packages with file globbing and have rpm attempt to install all of the packages?

I found that --force works, yet I do not want to install over already installed packages.

I doing this because I need to install all of the packages in a directory.

share|improve this question

migrated from Jun 25 '11 at 16:55

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

I'm assuming that the failure is a result of a bad exit status from an rpm script (pre/post, etc)?

If you resolve that issue and want to re-install using the glob, you might want to try:

yum localinstall *

Yum is smart enough to skip already installed packages. It will, however, stop on failed installs just like rpm does. So you'll need to either solve whatever problem that is first, or pass --skip-broken to it.

share|improve this answer
Or you can pass --skip-broken. – Ignacio Vazquez-Abrams Jun 24 '11 at 3:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .