Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jun 25 '11 at 16:55

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.