LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-03-2013, 11:17 PM   #1
newbie14
Member
 
Registered: Sep 2011
Posts: 470

Rep: Reputation: Disabled
Warning: RPMDB altered outside of yum.


Dear All,
When I tried to yum update I get this error Warning: RPMDB altered outside of yum. any thing serious about this?
 
Old 01-04-2013, 04:41 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,968

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
It's nothing serious. It just means that the yum database has gotten out of sync with the rpm database because you used rpm directly to install/remove/update a package, and as a result the various "yum history ..." commands won't show everything that has happened with your installed packages. It's a one-time message. If you manage your packages using yum exclusively, you won't see it again.
 
1 members found this post helpful.
Old 01-04-2013, 04:42 PM   #3
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 872

Rep: Reputation: 112Reputation: 112
It means somebody probably did something with the rpm commend such as

Quote:
rpm -ivh packages.9.9-1.rpm
Can it be serious. It is a possibility. Most of the time it can be safely ignored. Its just letting you know that the rpm database was modified and that it wasn't by yum.
 
1 members found this post helpful.
Old 01-05-2013, 12:11 PM   #4
newbie14
Member
 
Registered: Sep 2011
Posts: 470

Original Poster
Rep: Reputation: Disabled
Dear All,
Yes we did a rpm -ivh and what is difference between rpm -uvh? Which is safer to use? The problem some software are not found via yum.
 
Old 01-05-2013, 01:09 PM   #5
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 872

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by newbie14 View Post
Dear All,
Yes we did a rpm -ivh and what is difference between rpm -uvh? Which is safer to use? The problem some software are not found via yum.
run
Quote:
man rpm
one upgrades while the other just installs.
 
Old 01-05-2013, 02:35 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,830

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
just rebuild both DB's
Code:
su -
yum clean all
rpm --rebuilddb
yum update
 
Old 01-05-2013, 03:43 PM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,968

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by newbie14 View Post
Dear All,
Yes we did a rpm -ivh and what is difference between rpm -uvh? Which is safer to use? The problem some software are not found via yum.
"rpm -u" will install a new package or upgrade an existing one, removing all other versions of the package after the new one is installed. "rpm -i" just installs without removing other versions, and is used instead of "-u" for things like kernels, where you want to keep multiple versions installed.

yum is quite happy to install an RPM file that you have locally. Just run
Code:
yum install /path/to/some_file.rpm
        # or
yum update /path/to/some_file.rpm
With older versions of yum you might have to use "localinstall" or "localupdate" instead of "install" or "update".
 
1 members found this post helpful.
Old 01-05-2013, 09:12 PM   #8
newbie14
Member
 
Registered: Sep 2011
Posts: 470

Original Poster
Rep: Reputation: Disabled
Dear John,
Yes after googling I did yum clean all but what is this for rpm --rebuilddb? Which db is this?
 
Old 01-05-2013, 09:14 PM   #9
newbie14
Member
 
Registered: Sep 2011
Posts: 470

Original Poster
Rep: Reputation: Disabled
Dear jmc1987,
Thank you for the explanation now I am clear betweem ivh and uvh.
 
Old 01-05-2013, 09:15 PM   #10
newbie14
Member
 
Registered: Sep 2011
Posts: 470

Original Poster
Rep: Reputation: Disabled
Dear rknichols,
What is the major difference installing it with rpm -ivh and via yum install /path/to/some_file.rpm?
 
Old 01-05-2013, 09:45 PM   #11
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,968

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by newbie14 View Post
Dear rknichols,
What is the major difference installing it with rpm -ivh and via yum install /path/to/some_file.rpm?
Doing it via yum will allow the yum and rpm databases to stay in sync, the yum history will show who did the install and how, and that the package came from a local file. You might not think any of that is very important now, but a year from now being able to look back and see that, "Package A was installed from a local file and that packages C and D installed at that same time were brought in as dependencies from repo X," can be quite valuable.
 
Old 01-05-2013, 09:50 PM   #12
newbie14
Member
 
Registered: Sep 2011
Posts: 470

Original Poster
Rep: Reputation: Disabled
Dear rknichols,
So the right way to install is yum can I say that. But this I am quite lost "Package A was installed from a local file and that packages C and D installed at that same time were brought in as dependencies from repo X,". What risk factor can it cause? Like now I know I got one is the centos repo and another is the epel repo?
 
Old 01-05-2013, 10:18 PM   #13
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,968

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I'm just telling you what is considered good practice. How you choose to handle your own machine is entirely up to you.
 
Old 01-06-2013, 08:07 PM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Re #10; rpm does not do dependencies; yum does ....
 
Old 01-06-2013, 08:46 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,830

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
as above

rpm dose not handle any dependencies other than inform you that you are missing one or some

yum is used to handle the needed dependencies for a package
and will go and get them if possible .
 
  


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
Warning: RPMDB altered outside of yum jcky Linux - Newbie 4 01-08-2012 11:36 PM
yum rpmdb Pedroski Fedora 3 09-15-2011 11:22 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
Gnome altered permissions in /dev Ovalteen Linux - Software 3 03-23-2005 06:38 AM
anyone have an un-altered smb.conf file? Zaius Linux - Newbie 3 01-13-2004 01:15 PM


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