RPMDB altered outside of yum

A 5 star hangout for overworked and underpaid system admins.
Post Reply
newport_j
Posts: 257
Joined: 2012/06/01 16:30:08

RPMDB altered outside of yum

Post by newport_j » 2013/04/08 14:23:53

A few weeks ago, I installled the *.tar.gz version of Dyninst. I got errors, but it seemd to work.
Now I have found the latest and greatest rpm version of dyninst and I want to install that.

However, the carefully built *tar.gz version was on the hard drive and it and its the whole directory has since been removed.


When I typed

sudo yum install dyninst-8.0-1.el6.x86_64.rpm

I got the warning:

Warning: RPMDB altered outside of yum.

Yes, I did install a tar.gz version of dyninst.

It is gone now. What does this warning mean?

Thanks in advance.

Newport_j

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

RPMDB altered outside of yum

Post by gerald_clark » 2013/04/08 14:47:57

The warning means that you ran rpm directly instead of using yum.

newport_j
Posts: 257
Joined: 2012/06/01 16:30:08

Re: RPMDB altered outside of yum

Post by newport_j » 2013/04/08 14:59:40

Okay, I thought that

make clean all

would get rid of it this warning. It did not.

Should I be worried?

When I ran

[code]
yum install dyninst-8.0-1.el6.x86_64.rpm
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit, security
You need to be root to perform this command.
[james@james Downloads]$ sudo yum install dyninst-8.0-1.el6.x86_64.rpm
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: holmes.umflint.edu
* elrepo: mirror.ventraip.net.au
* extras: ftp.usf.edu
* updates: holmes.umflint.edu
Setting up Install Process
Examining dyninst-8.0-1.el6.x86_64.rpm: dyninst-8.0-1.el6.x86_64
Marking dyninst-8.0-1.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package dyninst.x86_64 0:8.0-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
dyninst x86_64 8.0-1.el6 /dyninst-8.0-1.el6.x86_64 9.5 M

Transaction Summary
=============================================================================================================================================================================================================================================
Install 1 Package(s)

Total size: 9.5 M
Installed size: 9.5 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : dyninst-8.0-1.el6.x86_64 1/1
Verifying : dyninst-8.0-1.el6.x86_64 1/1

Installed:
dyninst.x86_64 0:8.0-1.el6

Complete!
[/code]

It required me to be root to run the command. I then ran

sudo yum install dyninst-8.0-1.el6.x86_64.rpm

and it installed. Now I know that you warned me about usng sudo too much,
but I went ahead and used it anyway. I had to.

One final question. Where did it install? Where is the Dyninst directory?

I must configre this with TAU and it wants the dyniinst directory. So where is it.

I ran

sudo find ./ -mmin -10

and it should no files.

Where did it go?

Any help appreciated. Thanks in advance.

Newport_j







Any help appreaciated. thanks in advance.


Newport_j

markkuk
Posts: 739
Joined: 2007/09/07 10:56:28
Location: Finland

Re: RPMDB altered outside of yum

Post by markkuk » 2013/04/08 15:57:56

[quote]
newport_j wrote:

One final question. Where did it install? Where is the Dyninst directory?
[/quote]
Use "rpm -ql dyninst" to see the list of files installed by the dyninst package.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: RPMDB altered outside of yum

Post by toracat » 2013/04/08 16:10:31

Regarding the "RPMDB altered outside of yum" warning, try :
[code]
yum history sync
[/code]
and see if that "fixes" it.

collycrk
Posts: 3
Joined: 2014/07/17 22:05:50

Re: RPMDB altered outside of yum

Post by collycrk » 2014/07/17 22:17:04

Thanks, yum history sync workd for me.
:D

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: RPMDB altered outside of yum

Post by TrevorH » 2014/07/17 23:31:45

Actually that was not required, the warning clears itself as soon as it appears. You only see it once, then yum internally checks the consistency and resets the warning so unless you then rerun rpm to install/uninstall something then you shouldn't see the warning again.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply