[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rhn-users] Bootstrapping RPM - how?



Jeff Johnson wrote:

You can extract whatever you need from any rpm package by doing

/usr/lib/rpm/rpm2cpio.sh foo*.rpm | cpio -dim

Now I've really broken it:


[root samantha RPMS]# /root/tmp/bin/rpm --rebuilddb
rpmdb: process-private: unable to find environment
error: db4 error(2) from dbenv->open: No such file or directory
error: cannot open Packages index

[root samantha RPMS]# ls -al /var/lib/rpm
total 18552
drwxr-xr-x    2 rpm      rpm          4096 May 14 16:27 .
drwxr-xr-x   12 root     root         4096 May 14 16:30 ..
-rw-r--r--    1 root     root      2666496 May 14 16:27 Basenames
-rw-r--r--    1 root     root        12288 May 14 15:26 Conflictname
-rw-r--r--    1 root     root         8192 May 14 16:27 __db.001
-rw-r--r--    1 root     root       655360 May 14 16:27 __db.002
-rw-r--r--    1 root     root       348160 May 14 16:25 Dirnames
-rw-r--r--    1 root     root      5324800 May 14 16:25 Filemd5s
-rw-r--r--    1 root     root        12288 May 14 16:25 Group
-rw-r--r--    1 root     root        12288 May 14 16:25 Installtid
-rw-r--r--    1 root     root        24576 May 14 16:27 Name
-rw-r--r--    1 root     root     11603968 May 14 16:27 Packages
-rw-r--r--    1 root     root        90112 May 14 16:27 Providename
-rw-r--r--    1 root     root        49152 May 14 16:25 Provideversion
-rw-r--r--    1 root     root       106496 May 14 16:27 Requirename
-rw-r--r--    1 root     root        73728 May 14 16:25 Requireversion
-rw-r--r--    1 root     root        12288 May 14 16:25 Sha1header
-rw-r--r--    1 root     root        40960 May 14 16:25 Sigmd5
-rw-r--r--    1 root     root        12288 May 14 16:25 Triggername

Now I am confused even more - any clues?

Regards,
Graham
--
-----------------------------------------
minfrin sharp fm		"There's a moon
					over Bourbon Street
						tonight..."




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]