Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It removes the database files... this is a more recent command... perhaps RH 7.3 (I'm assuming you're using this b/c you installed that RPM db) would use a different command. How about grepping for the _db* files and see where they are stored.
Missing those files would definately screw up your apt-get/rpm functionality since those files contain the info on the rpms installed on your system... the rpm -vv --rebuilddb doesn't work for you right?
well the output is huged and looks something like this:
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.4154
D: creating directory /var/lib/rpmrebuilddb.4154
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages create:mpool
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening new database with dbapi 3
D: opening db environment /var/lib/rpmrebuilddb.4154/Packages create:mpool
D: opening db index /var/lib/rpmrebuilddb.4154/Packages create mode=0x42
D: +++ 1 libpng-1.0.12-2
D: opening db index /var/lib/rpmrebuilddb.4154/Name create mode=0x42
D: adding "libpng" to Name index.
D: opening db index /var/lib/rpmrebuilddb.4154/Basenames create mode=0x42
D: adding 9 entries to Basenames index.
D: opening db index /var/lib/rpmrebuilddb.4154/Group create mode=0x42
D: adding "System Environment/Libraries" to Group index.
D: opening db index /var/lib/rpmrebuilddb.4154/Requirename create mode=0x42
D: adding 11 entries to Requirename index.
D: opening db index /var/lib/rpmrebuilddb.4154/Providename create mode=0x42
D: adding 2 entries to Providename index.
D: opening db index /var/lib/rpmrebuilddb.4154/Conflictname create mode=0x42
D: adding "qt" to Conflictname index.
D: opening db index /var/lib/rpmrebuilddb.4154/Dirnames create mode=0x42
D: adding 4 entries to Dirnames index.
D: opening db index /var/lib/rpmrebuilddb.4154/Requireversion create mode=0x42
D: adding 11 entries to Requireversion index.
D: opening db index /var/lib/rpmrebuilddb.4154/Provideversion create mode=0x42
D: adding 2 entries to Provideversion index.
D: opening db index /var/lib/rpmrebuilddb.4154/Installtid create mode=0x42
D: adding 1 entries to Installtid index.
D: opening db index /var/lib/rpmrebuilddb.4154/Sigmd5 create mode=0x42
D: adding 1 entries to Sigmd5 index.
D: opening db index /var/lib/rpmrebuilddb.4154/Filemd5s create mode=0x42
D: adding 9 entries to Filemd5s index.
D: +++ 2 cdp-0.33-22
D: adding "cdp" to Name index.
.
.
.
<skip many lines>
.
.
.
D: +++ 444 gcc-c++-2.96-110
D: adding "gcc-c++" to Name index.
D: adding 23 entries to Basenames index.
D: adding "Development/Languages" to Group index.
D: adding 10 entries to Requirename index.
D: adding "gcc-c++" to Providename index.
D: adding 9 entries to Dirnames index.
D: adding 10 entries to Requireversion index.
D: adding "2.96-110" to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Sigmd5 index.
D: adding "a8293eeb64c62295660ce013b5c950191628b996" to Sha1header index.
D: adding 23 entries to Filemd5s index.
D: +++ 445 rpmdb-redhat-7.3-0.20020613
D: adding "rpmdb-redhat" to Name index.
D: adding 16 entries to Basenames index.
D: adding "Development/System" to Group index.
D: adding "rpmdb-redhat" to Providename index.
D: adding 2 entries to Dirnames index.
D: adding 2 entries to Requireversion index.
D: adding "7.3-0.20020613" to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Sigmd5 index.
D: adding "a812236c42d532434172ba77bdf86e0e9a8ae812" to Sha1header index.
D: adding 16 entries to Filemd5s index.
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: removed db environment /var/lib/rpm/Packages
D: closed db index /var/lib/rpmrebuilddb.4154/Filemd5s
D: verified db index /var/lib/rpmrebuilddb.4154/Filemd5s
D: closed db index /var/lib/rpmrebuilddb.4154/Sha1header
D: verified db index /var/lib/rpmrebuilddb.4154/Sha1header
D: closed db index /var/lib/rpmrebuilddb.4154/Sigmd5
D: verified db index /var/lib/rpmrebuilddb.4154/Sigmd5
D: closed db index /var/lib/rpmrebuilddb.4154/Installtid
D: verified db index /var/lib/rpmrebuilddb.4154/Installtid
D: closed db index /var/lib/rpmrebuilddb.4154/Provideversion
D: verified db index /var/lib/rpmrebuilddb.4154/Provideversion
D: closed db index /var/lib/rpmrebuilddb.4154/Requireversion
D: verified db index /var/lib/rpmrebuilddb.4154/Requireversion
D: closed db index /var/lib/rpmrebuilddb.4154/Dirnames
D: verified db index /var/lib/rpmrebuilddb.4154/Dirnames
D: closed db index /var/lib/rpmrebuilddb.4154/Triggername
D: verified db index /var/lib/rpmrebuilddb.4154/Triggername
D: closed db index /var/lib/rpmrebuilddb.4154/Conflictname
D: verified db index /var/lib/rpmrebuilddb.4154/Conflictname
D: closed db index /var/lib/rpmrebuilddb.4154/Providename
D: verified db index /var/lib/rpmrebuilddb.4154/Providename
D: closed db index /var/lib/rpmrebuilddb.4154/Requirename
D: verified db index /var/lib/rpmrebuilddb.4154/Requirename
D: closed db index /var/lib/rpmrebuilddb.4154/Group
D: verified db index /var/lib/rpmrebuilddb.4154/Group
D: closed db index /var/lib/rpmrebuilddb.4154/Basenames
D: verified db index /var/lib/rpmrebuilddb.4154/Basenames
D: closed db index /var/lib/rpmrebuilddb.4154/Name
D: verified db index /var/lib/rpmrebuilddb.4154/Name
D: closed db index /var/lib/rpmrebuilddb.4154/Packages
D: closed db environment /var/lib/rpmrebuilddb.4154/Packages
D: removed db environment /var/lib/rpmrebuilddb.4154/Packages
D: verified db index /var/lib/rpmrebuilddb.4154/Packages
D: removing directory /var/lib/rpmrebuilddb.4154
not really sure what i'm looking for, sorry. but this is what it looks like. what is this command suppose to look like..aka what should the output look like?...not like this?
Last edited by wedgeworth; 12-19-2003 at 01:56 PM.
still didn't seem to work. the first command (rpm --initdb) didn't seem to do anything.
# rpm --initdb
#
i don't know maybe it's all background. then i ran the rebuild again. it worked about as before. i check to see if there was any __db files in /var/lib/rpm/, but there still wasn't. and the update command still can't connect.
guys i really appreciate the help. hopefully it will get worked out. but it's friday and i won't touch it again til monday. so you want here anything else from me til then. but thanks for the help, and i haven't given up. i'm just going to be out of the office.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.