Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yum install of home-made RPM giving error

I am trying to isntall something using "yum install my.rpm"

The problem is I am getting

TypeError: an integer is required
error: python callback <bound method RPMTransaction.callback of <yum.rpmtrans.RPMTransaction instance at 0x013e3f8>> failed, aborting!

What does this mean? I turned on verbosity of the yum install, cant figure anything out. This is RHEL 6.1

Thanks

like image 580
Derek Avatar asked Jan 25 '12 20:01

Derek


People also ask

What is difference between yum install and RPM?

RPM keeps an internal database of the installed packages and allows you to later manage the installed packages using the package name. On the other hand, installing a package with YUM only requires the package name, and doesn't require the package location.


1 Answers

If rpm is not able to access the file for some reason while installing the package, it throws this error.

For example if your rpm is located on a NFS share witn root_squash directive, and try to install, then since root while attempting to access the file won't be permitted to it will fail, and it throws this excact error.

If this is your case, then putting the rpm in something like /tmp first, and then re-trying will solve it.

like image 100
Petter H Avatar answered Sep 22 '22 23:09

Petter H