monitor remote rpm database
Mulley, Nikhil
mnikhil at corp.untd.com
Wed Dec 29 14:26:59 UTC 2004
Hi,
Now ....I tried to go to /var/log
and there I found rpm log files
[root at linuxbox123 root]# cd /var/log
[root at linuxbox123 log]# ls *rpm*
rpmpkgs rpmpkgs.1 rpmpkgs.2 rpmpkgs.3 rpmpkgs.4
[root at linuxbox123 log]#
after diffing each file I found the difference of the files / packages that were installed
[root at linuxbox123 log]# diff rpmpkgs rpmpkgs.4
212d211
< j2re-1.4.0_03-fcs.i386.rpm
324d322
< mutt-1.4.1-4.i386.rpm
[root at linuxbox123 log]#
But my question stands as when did the exact change/or installation happen , and what is the significance of numerical extensions .1,.2,.3 in each of the files as I tried to diff
rpmpkgs and rpmpkgs.1 , I found no difference :( ( little confused here..)
[root at linuxbox123 log]# diff rpmpkgs rpmpkgs.1
[root at linuxbox123 log]#
then I simply did long listing and found that 'rpmpkgs' file is the latest file , Should I suppose it or not ? ( Noticing the Date)
[root at linuxbox123 log]# ls -l *rpm*
-rw-r--r-- 1 root root 14953 Dec 29 04:03 rpmpkgs
-rw-r--r-- 1 root root 14953 Dec 25 04:02 rpmpkgs.1
-rw-r--r-- 1 root root 14931 Dec 18 04:03 rpmpkgs.2
-rw-r--r-- 1 root root 14931 Dec 11 04:02 rpmpkgs.3
-rw-r--r-- 1 root root 14904 Dec 4 04:02 rpmpkgs.4
so simply diffing them would have the solution .. What do you say guys ???
Regards,
Nikhil.
-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com]On Behalf Of Mulley, Nikhil
Sent: Wednesday, December 29, 2004 7:44 PM
To: General Red Hat Linux discussion list
Subject: RE: monitor remote rpm database
Hi ,
Oops Sorry I lately found that rpm does not use gdbm and it uses Berkely Database
and stores the file in /var/lib/rpm
[root at linuxbox123 root]# cd /var/lib/rpm/
[root at linuxbox123 rpm]# ls
Basenames __db.001 __db.003 Filemd5s Installtid Packages Provideversion Requirename Sha1header Triggername
Conflictname __db.002 Dirnames Group Name Providename Pubkeys Requireversion Sigmd5
[root at linuxbox123 rpm]# cd Packages
bash: cd: Packages: Not a directory
[root at linuxbox123 rpm]# ls
Basenames __db.001 __db.003 Filemd5s Installtid Packages Provideversion Requirename Sha1header Triggername
Conflictname __db.002 Dirnames Group Name Providename Pubkeys Requireversion Sigmd5
[root at linuxbox123 rpm]# file Packages
Packages: Berkeley DB (Hash, version 8, native byte-order)
[root at linuxbox123 rpm]# pwd
/var/lib/rpm
[root at linuxbox123 rpm]#
Can anybody please tell me , if so , what could be the keys to read these files :-??
-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com]On Behalf Of Mulley, Nikhil
Sent: Wednesday, December 29, 2004 7:36 PM
To: redhat-list at redhat.com
Subject: monitor remote rpm database
Hi All ,
Happy Holidays :)
I want to know how can I monitor remote machines rpm database , so that when ever a user on that machine installs a new rpm on the system, thinking that I have root access to the remote machine .
when I tried to search in install.log which is in /root directory , it is created only when te distribution is installed and thereby not updated ,
Where is the path of the rpm database (gdbm) files that rpm maintains and how do I read them ( what could be the keys to read the gdbm files) and from them generate the reports and send a mail to root or a groupmail.
Regards,
Nikhil.
°v°
/(_)\
^ ^
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list