-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 14 August 2002 06:36 pm, Mark C wrote: > On Wed, 2002-08-14 at 21:46, Michael Fratoni wrote: > > You should have the file /var/log/rpmpkgs available. That file > > contains a complete list of every rpm installed on the system. > > Using the data in that file, it should be possible to then run: > > rpm -ivh --justdb for each package in listed in the file. It's still > > a lot of work, and obviously you need to have the package.rpm > > available, but it's better than nothing. > > thats fairly easy, copy all the contents of the RPMS directory onto > youre HDD and just create a perl/bash script to go through it line by > line and install the packages (you will probally need the force option > if you don't want to build dependancy checking into the script)
I was thinking the same thing right after posting my previous message., so I wrote one. ;) http://www.tuxfan.homeip.net:8080/hacks/recover_rpm_db.sh $ ./recover_rpm_db.sh Usage: recover_rpm_db.sh -f [file_name] -p [path[s] to rpm files]. Where 'file_name' is a file containing a list of rpm packages that should be included in the rpm database, and -p is the path or paths that contain the rpm packages. Hope someone finds it useful at some point in time. - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.{2,3} in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj1a9EgACgkQn/07WoAb/SuWHQCgsul826X9nZCkWEs2fApoLVj+ 89YAoKbVBJs3O/g//1DMmPw+fAsvNBkb =sDqw -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list